pub struct MailboxMessage {Show 13 fields
pub id: String,
pub status: String,
pub from: String,
pub from_session: Option<String>,
pub to: String,
pub body: String,
pub reply_to: Option<String>,
pub taint: Taint,
pub taint_recorded: bool,
pub created_at: String,
pub delivered_at: Option<String>,
pub delivered_to: Option<String>,
pub dismissed_at: Option<String>,
}Expand description
One message, as stored.
Fields§
§id: String§status: Stringpending | delivered | dismissed.
from: StringSender’s producer name (chat, a trigger’s name, user for the CLI).
Stamped by the harness from the run’s identity — the model composes
to and body, never who it is or what it has read.
from_session: Option<String>The sending session, when one existed. None for CLI sends.
to: StringRecipient producer name. The mailbox is the producer’s, not a
session’s: any live run of that producer may claim, which is what
lets an overnight trigger address chat without knowing which chat
session tomorrow brings.
body: String§reply_to: Option<String>An earlier message id this answers, for callers that thread.
taint: TaintThe sender’s conversation taint at send time. Merged into the receiving conversation at delivery, before the body enters it — the hop carries its history. A missing field (a message written by an older build) deserialises to the default and is then treated as untrusted at delivery: unknown provenance fails closed, the same rule the learning store applies.
taint_recorded: boolTrue when taint was actually recorded rather than defaulted in.
Serialised so the fail-closed rule above has something to key on.
created_at: String§delivered_at: Option<String>§delivered_to: Option<String>The session that claimed it.
dismissed_at: Option<String>When a person set it aside unread (mecha msg dismiss).
Implementations§
Source§impl MailboxMessage
impl MailboxMessage
Sourcepub fn effective_taint(&self) -> Taint
pub fn effective_taint(&self) -> Taint
The taint delivery must merge: what was recorded, or fully untrusted when nothing was. Never trust an absent field — an old writer or a hand-edited file must not read as a clean sender.
Trait Implementations§
Source§impl Clone for MailboxMessage
impl Clone for MailboxMessage
Source§fn clone(&self) -> MailboxMessage
fn clone(&self) -> MailboxMessage
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more