pub struct AgentDefinition {
pub format: DefFormat,
pub body: Vec<u8>,
}Expand description
A submitted agent definition: the raw bytes plus the format they are in.
The server never interprets the bytes itself; it hands them to the
AgentFactory. Keeping the raw body (rather than a parsed structure)
means the definition is rebuilt from exactly what was submitted on every
start, resume, and recover, the same way the CLI rebuilds from the TOML
file each time.
Fields§
§format: DefFormatThe format of body.
body: Vec<u8>The raw definition bytes.
Trait Implementations§
Source§impl Clone for AgentDefinition
impl Clone for AgentDefinition
Source§fn clone(&self) -> AgentDefinition
fn clone(&self) -> AgentDefinition
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 moreAuto Trait Implementations§
impl Freeze for AgentDefinition
impl RefUnwindSafe for AgentDefinition
impl Send for AgentDefinition
impl Sync for AgentDefinition
impl Unpin for AgentDefinition
impl UnsafeUnpin for AgentDefinition
impl UnwindSafe for AgentDefinition
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