#[non_exhaustive]pub struct Presence {
pub agent: String,
pub role: Option<String>,
pub tool: Option<String>,
pub last_active: i64,
pub alive: Alive,
pub claims: Vec<String>,
}Expand description
13a (13.3): one agent, as Mnemo::who lists it.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.agent: StringThe agent id.
role: Option<String>Its role, if it gave one.
tool: Option<String>The tool it last wrote through (mcp, cli, …).
last_active: i64When it last wrote, in unix seconds (updated at most once a minute).
alive: AliveWhether its process is running.
claims: Vec<String>The topics it holds live claims on.
Trait Implementations§
impl Eq for Presence
impl StructuralPartialEq for Presence
Auto Trait Implementations§
impl Forget for Presence
impl Freeze for Presence
impl Move for Presence
impl RefUnwindSafe for Presence
impl Send for Presence
impl Sync for Presence
impl Unpin for Presence
impl UnsafeUnpin for Presence
impl UnwindSafe for Presence
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