pub struct AgentInfo {
pub agent: AgentId,
pub space: SpaceId,
pub created_at: Timestamp,
pub expires_at: Timestamp,
pub is_tombstone: bool,
pub url: Option<Url>,
pub storage_arc: DhtArc,
}Expand description
AgentInfo stores metadata related to agents.
Fields§
§agent: AgentIdThe agent id.
space: SpaceIdThe space id.
created_at: TimestampWhen this metadata was created.
expires_at: TimestampWhen this metadata will expire.
is_tombstone: boolIf true, this metadata is a tombstone, indicating
the agent has gone offline, and is no longer reachable.
url: Option<Url>If set, this indicates the primary url at which this agent may be reached. This should largely only be UNSET if this is a tombstone.
storage_arc: DhtArcThe arc over which this agent claims authority.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AgentInfo
impl<'de> Deserialize<'de> for AgentInfo
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 AgentInfo
impl StructuralPartialEq for AgentInfo
Auto Trait Implementations§
impl !Freeze for AgentInfo
impl RefUnwindSafe for AgentInfo
impl Send for AgentInfo
impl Sync for AgentInfo
impl Unpin for AgentInfo
impl UnwindSafe for AgentInfo
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