pub struct IntentToken {
pub schema: String,
pub id: Uuid,
pub parent_id: Option<Uuid>,
pub verb: Verb,
pub object: Object,
pub modifiers: BTreeMap<String, Value>,
pub required_capabilities: Vec<String>,
pub provenance: Provenance,
pub confidence: Option<f32>,
pub constraints: Vec<Constraint>,
pub namespace: String,
}Expand description
The universal envelope that flows from a classifier through a router into
an executor. verb + object describe what the caller wants;
required_capabilities and constraints describe under what conditions
the action may run; provenance records who asked.
Fields§
§schema: String§id: Uuid§parent_id: Option<Uuid>§verb: Verb§object: Object§modifiers: BTreeMap<String, Value>§required_capabilities: Vec<String>§provenance: Provenance§confidence: Option<f32>§constraints: Vec<Constraint>§namespace: StringImplementations§
Source§impl IntentToken
impl IntentToken
Trait Implementations§
Source§impl Clone for IntentToken
impl Clone for IntentToken
Source§impl Debug for IntentToken
impl Debug for IntentToken
Source§impl<'de> Deserialize<'de> for IntentToken
impl<'de> Deserialize<'de> for IntentToken
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 IntentToken
impl PartialEq for IntentToken
Source§impl Serialize for IntentToken
impl Serialize for IntentToken
impl StructuralPartialEq for IntentToken
Auto Trait Implementations§
impl Freeze for IntentToken
impl RefUnwindSafe for IntentToken
impl Send for IntentToken
impl Sync for IntentToken
impl Unpin for IntentToken
impl UnsafeUnpin for IntentToken
impl UnwindSafe for IntentToken
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