pub struct DirectoryEntry {
pub id: ParticipantId,
pub label: Option<String>,
pub sessions: Vec<SessionEntry>,
}Expand description
One account in the mailbox’s directory, with its live sessions
nested under it – the XMPP/Matrix shape (an account, then its
individually addressable sessions), not a flat list of CLI brands. See
mailbox-service-extraction-and-signed-session-identity-2026-09-16.md
§5e. Never carries a secret digest or a permission bit – a
directory answers “who exists”, not “what may they do” or anything that
would help forge them, and a type that structurally has no such field
cannot leak one even by accident (mirrors
mail4agent_core::store::ParticipantSummary, the store-side type this
is assembled from). sessions defaults to empty on decode so a payload
written before this field existed still deserializes.
Fields§
§id: ParticipantId§label: Option<String>§sessions: Vec<SessionEntry>Implementations§
Trait Implementations§
Source§impl Clone for DirectoryEntry
impl Clone for DirectoryEntry
Source§impl Debug for DirectoryEntry
impl Debug for DirectoryEntry
Source§impl<'de> Deserialize<'de> for DirectoryEntry
impl<'de> Deserialize<'de> for DirectoryEntry
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 DirectoryEntry
Source§impl PartialEq for DirectoryEntry
impl PartialEq for DirectoryEntry
Source§impl Serialize for DirectoryEntry
impl Serialize for DirectoryEntry
impl StructuralPartialEq for DirectoryEntry
Auto Trait Implementations§
impl Freeze for DirectoryEntry
impl RefUnwindSafe for DirectoryEntry
impl Send for DirectoryEntry
impl Sync for DirectoryEntry
impl Unpin for DirectoryEntry
impl UnsafeUnpin for DirectoryEntry
impl UnwindSafe for DirectoryEntry
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