pub struct DecisionRequest {
pub model: String,
pub state: Value,
pub questions: BTreeMap<String, Question>,
}Expand description
One request: a state, and questions about it under ids of the caller’s choosing. Every question sees the same state and is answered independently of the others.
Fields§
§model: String§state: Value§questions: BTreeMap<String, Question>Trait Implementations§
Source§impl Clone for DecisionRequest
impl Clone for DecisionRequest
Source§impl Debug for DecisionRequest
impl Debug for DecisionRequest
Source§impl PartialEq for DecisionRequest
impl PartialEq for DecisionRequest
Source§impl Serialize for DecisionRequest
impl Serialize for DecisionRequest
impl StructuralPartialEq for DecisionRequest
Auto Trait Implementations§
impl Freeze for DecisionRequest
impl RefUnwindSafe for DecisionRequest
impl Send for DecisionRequest
impl Sync for DecisionRequest
impl Unpin for DecisionRequest
impl UnsafeUnpin for DecisionRequest
impl UnwindSafe for DecisionRequest
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