pub struct MailSendRequest {
pub to: Address,
pub subject: String,
pub body: String,
pub reply_to: Option<MessageId>,
pub correlation: Option<String>,
pub refs: Vec<MessageRef>,
pub idempotency_key: Option<String>,
}Expand description
Re-export common wire types so hatchery can use mail4agent_client::*.
Requests a send. Has no from field and must never grow one. The
sender is whoever the presented credential authenticated as; the
mailbox derives from from the verified identity, never from a field
the caller filled in.
Fields§
§to: Address§subject: String§body: String§reply_to: Option<MessageId>§correlation: Option<String>§refs: Vec<MessageRef>§idempotency_key: Option<String>Scopes a retry: a repeat SendRequest from the same participant
carrying the same key returns the original SendResponse and
creates nothing (mail4agent-core’s MailboxEngine::send).
Optional and defaulted on decode so a payload written before this
field existed still deserializes.
Without a key, a repeat send is a second message, and that is correct – sending the same text twice on purpose should produce two messages. This field opts a caller into dedup; it is never inferred from content.
Implementations§
Trait Implementations§
Source§impl Clone for SendRequest
impl Clone for SendRequest
Source§fn clone(&self) -> SendRequest
fn clone(&self) -> SendRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more