pub struct Decision {
pub time_ms: u32,
pub list_id: String,
pub fired_action_index: Option<usize>,
pub evaluations: Vec<ActionEvaluation>,
pub nested: Vec<Decision>,
}Expand description
One decision recorded for a single evaluate() call.
Fields§
§time_ms: u32§list_id: String§fired_action_index: Option<usize>§evaluations: Vec<ActionEvaluation>§nested: Vec<Decision>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Decision
impl<'de> Deserialize<'de> for Decision
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 FromWasmAbi for Decisionwhere
Self: DeserializeOwned,
impl FromWasmAbi for Decisionwhere
Self: DeserializeOwned,
Source§impl IntoWasmAbi for &Decision
impl IntoWasmAbi for &Decision
Source§impl IntoWasmAbi for Decision
impl IntoWasmAbi for Decision
Source§impl OptionFromWasmAbi for Decisionwhere
Self: DeserializeOwned,
impl OptionFromWasmAbi for Decisionwhere
Self: DeserializeOwned,
Source§impl OptionIntoWasmAbi for Decision
impl OptionIntoWasmAbi for Decision
Source§impl RefFromWasmAbi for Decisionwhere
Self: DeserializeOwned,
impl RefFromWasmAbi for Decisionwhere
Self: DeserializeOwned,
Source§type Abi = <JsType as RefFromWasmAbi>::Abi
type Abi = <JsType as RefFromWasmAbi>::Abi
The Wasm ABI type references to
Self are recovered from.Source§impl Tsify for Decision
impl Tsify for Decision
const DECL: &'static str = "/**\n * One decision recorded for a single `evaluate()` call.\n */\nexport interface Decision {\n timeMs: number;\n listId: string;\n firedActionIndex: number | undefined;\n evaluations: ActionEvaluation[];\n nested: Decision[];\n}"
const SERIALIZATION_CONFIG: SerializationConfig
type JsType = JsType
fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
fn from_js<T>(js: T) -> Result<Self, Error>
Source§impl VectorFromWasmAbi for Decisionwhere
Self: DeserializeOwned,
impl VectorFromWasmAbi for Decisionwhere
Self: DeserializeOwned,
type Abi = <JsType as VectorFromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Self]>
Source§impl VectorIntoWasmAbi for Decision
impl VectorIntoWasmAbi for Decision
type Abi = <JsType as VectorIntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi
Source§impl WasmDescribeVector for Decision
impl WasmDescribeVector for Decision
Auto Trait Implementations§
impl Freeze for Decision
impl RefUnwindSafe for Decision
impl Send for Decision
impl Sync for Decision
impl Unpin for Decision
impl UnsafeUnpin for Decision
impl UnwindSafe for Decision
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.