pub struct AgentManifest {
pub agent: AgentIdentity,
pub publisher: Option<PublisherInfo>,
pub runtime: Option<RuntimeRequirements>,
pub lifecycle: Option<LifecyclePolicy>,
pub transport: TransportSpec,
pub capabilities: Option<CapabilityDeclarations>,
}Expand description
manifest.toml top-level structure. One file per installed
agent at ~/.car/agents/<id>/manifest.toml.
Fields§
§agent: AgentIdentity§publisher: Option<PublisherInfo>§runtime: Option<RuntimeRequirements>§lifecycle: Option<LifecyclePolicy>§transport: TransportSpec§capabilities: Option<CapabilityDeclarations>Implementations§
Source§impl AgentManifest
impl AgentManifest
pub fn is_pure_data(&self) -> bool
pub fn is_remote_service(&self) -> bool
Sourcepub fn from_toml_str(text: &str) -> Result<Self, BundleError>
pub fn from_toml_str(text: &str) -> Result<Self, BundleError>
Parse a manifest.toml text. Does NOT verify the signature
— pair with verify_signature when verification is
required.
Sourcepub fn to_toml_string(&self) -> Result<String, BundleError>
pub fn to_toml_string(&self) -> Result<String, BundleError>
Serialize back to canonical TOML text. Round-trips through
to_string_pretty and back via from_toml_str.
Trait Implementations§
Source§impl Clone for AgentManifest
impl Clone for AgentManifest
Source§fn clone(&self) -> AgentManifest
fn clone(&self) -> AgentManifest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AgentManifest
impl Debug for AgentManifest
Source§impl<'de> Deserialize<'de> for AgentManifest
impl<'de> Deserialize<'de> for AgentManifest
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 AgentManifest
impl RefUnwindSafe for AgentManifest
impl Send for AgentManifest
impl Sync for AgentManifest
impl Unpin for AgentManifest
impl UnsafeUnpin for AgentManifest
impl UnwindSafe for AgentManifest
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