pub struct QueuedMessage {Show 14 fields
pub id: i64,
pub sender: String,
pub recipient: String,
pub domain: String,
pub message_data: Vec<u8>,
pub status: QueueStatus,
pub attempts: u32,
pub max_attempts: u32,
pub next_retry: i64,
pub last_error: Option<String>,
pub message_id: Option<String>,
pub created_at: i64,
pub updated_at: i64,
pub is_forwarded: bool,
}Expand description
One queued outbound message — the full row stored in the outbound queue.
Fields§
§id: i64Store-native primary key.
sender: StringEnvelope sender (reverse path).
recipient: StringEnvelope recipient (single forward path; multi-recipient messages fan out into one row per recipient).
domain: StringRecipient’s domain — extracted for MX-grouped batching.
message_data: Vec<u8>Full RFC 5322 message body (including headers).
status: QueueStatusCurrent lifecycle status.
attempts: u32Number of delivery attempts made so far.
max_attempts: u32Cap after which Failed flips to Bounced.
next_retry: i64Epoch seconds — the earliest time the next attempt is eligible.
last_error: Option<String>Last error response from the remote MX, if any.
message_id: Option<String>Message-ID: header value, for log correlation.
created_at: i64Epoch seconds when the row was first enqueued.
updated_at: i64Epoch seconds of the most recent update.
is_forwarded: booltrue when the message came from a forwarding rule rather than a
local sender.
Trait Implementations§
Source§impl Clone for QueuedMessage
impl Clone for QueuedMessage
Source§fn clone(&self) -> QueuedMessage
fn clone(&self) -> QueuedMessage
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for QueuedMessage
impl RefUnwindSafe for QueuedMessage
impl Send for QueuedMessage
impl Sync for QueuedMessage
impl Unpin for QueuedMessage
impl UnsafeUnpin for QueuedMessage
impl UnwindSafe for QueuedMessage
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more