pub struct AgentRecord {
pub id: String,
pub name: String,
pub version: String,
pub description: Option<String>,
pub capabilities: Vec<String>,
pub tags: Vec<String>,
pub address: SocketAddr,
pub status: AgentStatus,
pub last_heartbeat: DateTime<Utc>,
pub registered_at: DateTime<Utc>,
}Expand description
Snapshot of an agent returned by discovery calls.
Fields§
§id: StringAgent identifier.
name: StringHuman readable name.
version: StringSemantic version string.
description: Option<String>Optional description.
capabilities: Vec<String>Capability identifiers.
Optional tags associated with the agent.
address: SocketAddrMXP endpoint address.
status: AgentStatusReported health status.
last_heartbeat: DateTime<Utc>Timestamp of the last heartbeat observed by the registry.
registered_at: DateTime<Utc>Timestamp the agent was first registered.
Trait Implementations§
Source§impl Clone for AgentRecord
impl Clone for AgentRecord
Source§fn clone(&self) -> AgentRecord
fn clone(&self) -> AgentRecord
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 AgentRecord
impl Debug for AgentRecord
Source§impl<'de> Deserialize<'de> for AgentRecord
impl<'de> Deserialize<'de> for AgentRecord
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 AgentRecord
impl RefUnwindSafe for AgentRecord
impl Send for AgentRecord
impl Sync for AgentRecord
impl Unpin for AgentRecord
impl UnwindSafe for AgentRecord
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