pub enum PerceptionTarget {
Entity {
name: String,
entity_type: String,
identifier: Option<String>,
},
Location {
path: String,
location_type: String,
},
Event {
description: String,
event_type: String,
time_range: Option<TimeRange>,
},
Relation {
entities: Vec<String>,
relation_type: String,
},
Rule {
name: String,
rule_type: String,
scope: Option<String>,
},
State {
target: String,
aspect: String,
include_history: bool,
},
Resource {
name: String,
resource_type: String,
constraints: Option<Value>,
},
Pattern {
pattern: String,
pattern_type: String,
},
}Expand description
Perception target - what the model wants to perceive.
Variants§
Entity
A specific object or concept.
Fields
Location
A path or place.
Fields
Event
Something that happened or will happen.
Fields
Relation
Connections between multiple entities.
Fields
Rule
A policy, strategy, or convention.
Fields
State
Current condition of a system or entity.
Resource
An available capability or asset.
Fields
Pattern
A recurring phenomenon or rule.
Trait Implementations§
Source§impl Clone for PerceptionTarget
impl Clone for PerceptionTarget
Source§fn clone(&self) -> PerceptionTarget
fn clone(&self) -> PerceptionTarget
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 PerceptionTarget
impl Debug for PerceptionTarget
Source§impl<'de> Deserialize<'de> for PerceptionTarget
impl<'de> Deserialize<'de> for PerceptionTarget
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
Auto Trait Implementations§
impl Freeze for PerceptionTarget
impl RefUnwindSafe for PerceptionTarget
impl Send for PerceptionTarget
impl Sync for PerceptionTarget
impl Unpin for PerceptionTarget
impl UnsafeUnpin for PerceptionTarget
impl UnwindSafe for PerceptionTarget
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