pub struct RegisteredAgent {
pub definition: AgentDefinition,
pub agent_hash: String,
pub name: Option<String>,
}Expand description
One registered agent definition.
Fields§
§definition: AgentDefinitionThe submitted definition, kept for every rebuild.
agent_hash: StringThe agent’s content hash (agent_def_hash), the id clients reference.
name: Option<String>The agent’s display name, when the definition declared one
(Agent::name, read off the built agent at registration time).
None when the definition carried no name — genuinely absent, not a
default to fall back on: agents::get and
agents::list omit the field entirely for
such an agent rather than emit "name": null.
Trait Implementations§
Source§impl Clone for RegisteredAgent
impl Clone for RegisteredAgent
Source§fn clone(&self) -> RegisteredAgent
fn clone(&self) -> RegisteredAgent
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 RegisteredAgent
impl RefUnwindSafe for RegisteredAgent
impl Send for RegisteredAgent
impl Sync for RegisteredAgent
impl Unpin for RegisteredAgent
impl UnsafeUnpin for RegisteredAgent
impl UnwindSafe for RegisteredAgent
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