pub struct System1Response {
pub decider_id: String,
pub checkpoint: Option<String>,
pub answers: BTreeMap<String, DecisionAnswer>,
}Expand description
Parsed System 1 result. checkpoint is the routing model when the server reports one.
Fields§
§decider_id: String§checkpoint: Option<String>§answers: BTreeMap<String, DecisionAnswer>Implementations§
Source§impl System1Response
impl System1Response
Sourcepub fn parse_wire(
questions: &BTreeMap<String, DecisionQuestion>,
value: &Value,
) -> Result<Self>
pub fn parse_wire( questions: &BTreeMap<String, DecisionQuestion>, value: &Value, ) -> Result<Self>
Parse a Laya / Jev /v1/systemone JSON body against the questions that were asked.
Trait Implementations§
Source§impl Clone for System1Response
impl Clone for System1Response
Source§fn clone(&self) -> System1Response
fn clone(&self) -> System1Response
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 System1Response
impl Debug for System1Response
Source§impl PartialEq for System1Response
impl PartialEq for System1Response
impl StructuralPartialEq for System1Response
Auto Trait Implementations§
impl Freeze for System1Response
impl RefUnwindSafe for System1Response
impl Send for System1Response
impl Sync for System1Response
impl Unpin for System1Response
impl UnsafeUnpin for System1Response
impl UnwindSafe for System1Response
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