pub struct AgentDecl {
pub name: String,
pub profile: String,
pub label: Option<String>,
pub parent: Option<String>,
pub sponsor: Option<String>,
pub residue: BTreeMap<String, Value>,
}Expand description
One agent this home declares: who answers, and which profile is its template. A named profile implies its own agent of the same name; a declaration names others (several agents may share one profile) and the parent each is declared under.
Fields§
§name: StringUnique among the home’s agents; a route, a speaker policy and a binding name it.
profile: StringThe profile it runs as (its layered template).
label: Option<String>A display label, not identity.
parent: Option<String>The agent it is declared under, if not the home’s root.
sponsor: Option<String>A person set on purpose as its sponsor; absent, the sponsor is inherited.
residue: BTreeMap<String, Value>What a source format said about it that the IR has no field for, verbatim.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AgentDecl
impl<'de> Deserialize<'de> for AgentDecl
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
impl Eq for AgentDecl
Source§impl JsonSchema for AgentDecl
impl JsonSchema for AgentDecl
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for AgentDecl
Auto Trait Implementations§
impl Freeze for AgentDecl
impl RefUnwindSafe for AgentDecl
impl Send for AgentDecl
impl Sync for AgentDecl
impl Unpin for AgentDecl
impl UnsafeUnpin for AgentDecl
impl UnwindSafe for AgentDecl
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.