pub struct ParticipantRecord {
pub label: Option<String>,
pub secret_digest: SecretDigest,
pub may_send: bool,
pub may_read: bool,
pub operator: bool,
pub listener_url: Option<String>,
}Expand description
A registered participant, as the mailbox’s own registry holds it.
label is display metadata only. secret_digest is the SHA-256 digest
of the participant’s bearer secret – the plaintext is generated once, on
registration or rotation, handed back to the caller, and never stored.
may_send and may_read gate crate::MailboxEngine::send and the
read-side operations respectively; operator additionally lets a
participant read any named address one at a time (see
crate::MailboxEngine::inbox_of), never the whole mailbox in one call.
Fields§
§label: Option<String>§secret_digest: SecretDigest§may_send: bool§may_read: bool§operator: bool§listener_url: Option<String>The URL the mailbox POSTs a mail4agent_api::DeliveryNotification
to when mail arrives for this account or any of its sessions –
None until crate::MailboxEngine::set_listener registers one.
Structural validation (bounded, loopback-only) happens once, in
that engine method, before this is ever written – this store keeps
whatever string it is handed, the same way label does.