pub struct DecisionRequest {
pub model: Option<ModelId>,
pub context: Value,
pub questions: BTreeMap<String, DecisionQuestion>,
}Expand description
Shared context evaluated against independent, named questions.
Fields§
§model: Option<ModelId>Optional until a target is selected.
context: ValueConversation, application state, or other material to evaluate.
questions: BTreeMap<String, DecisionQuestion>Independent questions keyed by their IDs.
Trait Implementations§
Source§impl Clone for DecisionRequest
impl Clone for DecisionRequest
Source§fn clone(&self) -> DecisionRequest
fn clone(&self) -> DecisionRequest
Returns a duplicate of the value. Read more
1.0.0 · 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 DecisionRequest
impl Debug for DecisionRequest
Source§impl<'de> Deserialize<'de> for DecisionRequest
impl<'de> Deserialize<'de> for DecisionRequest
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 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