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<Decision, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Decision, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromWasmAbi for Decisionwhere
Decision: DeserializeOwned,
impl FromWasmAbi for Decisionwhere
Decision: DeserializeOwned,
Source§impl IntoWasmAbi for &Decision
impl IntoWasmAbi for &Decision
Source§impl IntoWasmAbi for Decision
impl IntoWasmAbi for Decision
Source§impl OptionFromWasmAbi for Decisionwhere
Decision: DeserializeOwned,
impl OptionFromWasmAbi for Decisionwhere
Decision: DeserializeOwned,
Source§impl OptionIntoWasmAbi for Decision
impl OptionIntoWasmAbi for Decision
Source§impl RefFromWasmAbi for Decisionwhere
Decision: DeserializeOwned,
impl RefFromWasmAbi for Decisionwhere
Decision: 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§type Anchor = SelfOwner<Decision>
type Anchor = SelfOwner<Decision>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§unsafe fn ref_from_abi(
js: <Decision as RefFromWasmAbi>::Abi,
) -> <Decision as RefFromWasmAbi>::Anchor
unsafe fn ref_from_abi( js: <Decision as RefFromWasmAbi>::Abi, ) -> <Decision as RefFromWasmAbi>::Anchor
Source§impl Serialize for Decision
impl Serialize for Decision
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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
Decision: DeserializeOwned,
impl VectorFromWasmAbi for Decisionwhere
Decision: DeserializeOwned,
type Abi = <JsType as VectorFromWasmAbi>::Abi
unsafe fn vector_from_abi( js: <Decision as VectorFromWasmAbi>::Abi, ) -> Box<[Decision]>
Source§impl VectorIntoWasmAbi for Decision
impl VectorIntoWasmAbi for Decision
type Abi = <JsType as VectorIntoWasmAbi>::Abi
fn vector_into_abi( vector: Box<[Decision]>, ) -> <Decision as VectorIntoWasmAbi>::Abi
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> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§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.