pub struct LocalDelivery {
pub timestamp: DateTime<Utc>,
pub queue_id: String,
pub recipient: String,
pub original_recipient: Option<String>,
pub relay: String,
pub delay: f64,
pub delays: Vec<f64>,
pub dsn: String,
pub status: DeliveryStatus,
pub delivery_method: DeliveryMethod,
pub size: Option<u64>,
pub nrcpt: Option<u32>,
}
Expand description
本地投递事件
记录邮件到本地邮箱的投递过程和结果
Fields§
§timestamp: DateTime<Utc>
投递发生时间戳(UTC时间)
queue_id: String
队列ID(邮件在系统中的唯一标识符)
recipient: String
最终收件人地址 经过别名解析后的实际投递地址
original_recipient: Option<String>
原始收件人地址(如果有别名转换) 邮件最初的目标地址,在别名解析前
relay: String
中继信息 通常为“local“表示本地投递
delay: f64
总投递延迟时间(秒) 从邮件接收到投递完成的总时间
delays: Vec<f64>
延迟时间细分(各阶段用时) 详细的时间分解,包含队列等待、处理等各阶段
dsn: String
投递状态码(DSN格式) 符合RFC 3463标准的状态码
status: DeliveryStatus
投递状态结果
delivery_method: DeliveryMethod
投递方法类型
size: Option<u64>
邮件大小(字节数,可选)
nrcpt: Option<u32>
收件人数量(可选)
Trait Implementations§
Source§impl Clone for LocalDelivery
impl Clone for LocalDelivery
Source§fn clone(&self) -> LocalDelivery
fn clone(&self) -> LocalDelivery
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 moreSource§impl Debug for LocalDelivery
impl Debug for LocalDelivery
Source§impl<'de> Deserialize<'de> for LocalDelivery
impl<'de> Deserialize<'de> for LocalDelivery
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
Auto Trait Implementations§
impl Freeze for LocalDelivery
impl RefUnwindSafe for LocalDelivery
impl Send for LocalDelivery
impl Sync for LocalDelivery
impl Unpin for LocalDelivery
impl UnwindSafe for LocalDelivery
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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