pub enum DecisionType {
Choice {
options: Vec<DecisionOption>,
},
Score {
levels: Vec<Value>,
},
Noul {
false_description: Option<Value>,
true_description: Option<Value>,
},
}Variants§
Choice
Fields
§
options: Vec<DecisionOption>Score
Noul
Laya’s binary yes/no decision head (“noul” in the model contract).
Trait Implementations§
Source§impl Clone for DecisionType
impl Clone for DecisionType
Source§impl Debug for DecisionType
impl Debug for DecisionType
Source§impl<'de> Deserialize<'de> for DecisionType
impl<'de> Deserialize<'de> for DecisionType
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 DecisionType
impl PartialEq for DecisionType
Source§impl Serialize for DecisionType
impl Serialize for DecisionType
impl StructuralPartialEq for DecisionType
Auto Trait Implementations§
impl Freeze for DecisionType
impl RefUnwindSafe for DecisionType
impl Send for DecisionType
impl Sync for DecisionType
impl Unpin for DecisionType
impl UnsafeUnpin for DecisionType
impl UnwindSafe for DecisionType
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