pub struct QueuedEmail {
pub email: Email,
pub status: QueueStatus,
pub attempts: u32,
pub max_attempts: u32,
pub scheduled_time: Option<u64>,
pub last_error: Option<String>,
}Expand description
Queued email with metadata
Fields§
§email: Email§status: QueueStatus§attempts: u32§max_attempts: u32§scheduled_time: Option<u64>§last_error: Option<String>Implementations§
Source§impl QueuedEmail
impl QueuedEmail
pub fn new(email: Email) -> Self
pub fn with_retry(self, max_attempts: u32) -> Self
pub fn schedule_at(self, timestamp: u64) -> Self
Trait Implementations§
Source§impl Clone for QueuedEmail
impl Clone for QueuedEmail
Source§fn clone(&self) -> QueuedEmail
fn clone(&self) -> QueuedEmail
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for QueuedEmail
impl RefUnwindSafe for QueuedEmail
impl Send for QueuedEmail
impl Sync for QueuedEmail
impl Unpin for QueuedEmail
impl UnwindSafe for QueuedEmail
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