pub struct Envelope {
pub id: String,
pub created_at_ms: u64,
pub from: MailAddress,
pub from_name: String,
pub kind: MailKind,
pub reply_via: ReplyVia,
pub in_reply_to: Option<String>,
pub in_reply_to_inferred: bool,
pub native_from: Option<String>,
pub body: String,
}Expand description
One message filed in a mailbox.
Fields§
§id: StringUnique message id; also the deduplication key.
created_at_ms: u64Epoch milliseconds at which the message was filed.
from: MailAddressLive return address of the sender.
from_name: StringName the agent should know the sender by (reviewer-3@mac-studio).
kind: MailKindSource kind; decides the trust wording.
reply_via: ReplyViaHow an answer travels back.
in_reply_to: Option<String>Message this one answers, when known.
in_reply_to_inferred: boolTrue when in_reply_to was inferred (a native reply that carried no
id) rather than stated by the sender.
native_from: Option<String>The harness-native sender address this arrived under, kept as
metadata only (a Claude uds: socket). Never a reply destination.
body: StringMessage text, exactly as sent.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Envelope
impl<'de> Deserialize<'de> for Envelope
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 Envelope
impl StructuralPartialEq for Envelope
Auto Trait Implementations§
impl Freeze for Envelope
impl RefUnwindSafe for Envelope
impl Send for Envelope
impl Sync for Envelope
impl Unpin for Envelope
impl UnsafeUnpin for Envelope
impl UnwindSafe for Envelope
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.