pub struct DecisionChoice {
pub id: String,
pub description: String,
}Expand description
One option in a decision choice question.
Fields§
§id: StringStable ID used by the answer’s selection and probabilities.
description: StringMeaning of this choice, sent to the decision model.
Trait Implementations§
Source§impl Clone for DecisionChoice
impl Clone for DecisionChoice
Source§fn clone(&self) -> DecisionChoice
fn clone(&self) -> DecisionChoice
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DecisionChoice
impl Debug for DecisionChoice
Source§impl<'de> Deserialize<'de> for DecisionChoice
impl<'de> Deserialize<'de> for DecisionChoice
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DecisionChoice
impl PartialEq for DecisionChoice
impl StructuralPartialEq for DecisionChoice
Auto Trait Implementations§
impl Freeze for DecisionChoice
impl RefUnwindSafe for DecisionChoice
impl Send for DecisionChoice
impl Sync for DecisionChoice
impl Unpin for DecisionChoice
impl UnsafeUnpin for DecisionChoice
impl UnwindSafe for DecisionChoice
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more