pub struct DecisionOption {
pub key: String,
pub label: String,
}Expand description
One structured alternative of a decision; decide must select exactly one option key.
Fields§
§key: StringStable option identifier, unique within the decision; the decided outcome names it.
label: StringHuman-readable description of the alternative.
Trait Implementations§
Source§impl Clone for DecisionOption
impl Clone for DecisionOption
Source§impl Debug for DecisionOption
impl Debug for DecisionOption
Source§impl<'de> Deserialize<'de> for DecisionOption
impl<'de> Deserialize<'de> for DecisionOption
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
impl Eq for DecisionOption
Source§impl PartialEq for DecisionOption
impl PartialEq for DecisionOption
Source§impl Serialize for DecisionOption
impl Serialize for DecisionOption
impl StructuralPartialEq for DecisionOption
Auto Trait Implementations§
impl Freeze for DecisionOption
impl RefUnwindSafe for DecisionOption
impl Send for DecisionOption
impl Sync for DecisionOption
impl Unpin for DecisionOption
impl UnsafeUnpin for DecisionOption
impl UnwindSafe for DecisionOption
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