pub struct ExternalDelivery {
pub timestamp: DateTime<Utc>,
pub queue_id: String,
pub recipient: String,
pub original_recipient: Option<String>,
pub command: Option<String>,
pub file_path: Option<String>,
pub status: DeliveryStatus,
pub delay: f64,
pub details: HashMap<String, String>,
}
Expand description
外部投递事件
记录通过外部命令或文件进行的邮件投递
Fields§
§timestamp: DateTime<Utc>
投递发生时间戳(UTC时间)
queue_id: String
队列ID(邮件在系统中的唯一标识符)
recipient: String
收件人地址
original_recipient: Option<String>
原始收件人地址(如果有转换) 在别名或转发规则应用前的原始地址
command: Option<String>
执行的外部命令(如果适用) 用于投递邮件的外部程序或脚本
file_path: Option<String>
投递的文件路径(如果适用) 邮件投递到的文件系统路径
status: DeliveryStatus
投递状态结果
delay: f64
投递延迟时间(秒) 从开始投递到完成的耗时
details: HashMap<String, String>
附加详细信息 包含投递过程中的额外信息和元数据
Trait Implementations§
Source§impl Clone for ExternalDelivery
impl Clone for ExternalDelivery
Source§fn clone(&self) -> ExternalDelivery
fn clone(&self) -> ExternalDelivery
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 ExternalDelivery
impl Debug for ExternalDelivery
Source§impl<'de> Deserialize<'de> for ExternalDelivery
impl<'de> Deserialize<'de> for ExternalDelivery
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 ExternalDelivery
impl RefUnwindSafe for ExternalDelivery
impl Send for ExternalDelivery
impl Sync for ExternalDelivery
impl Unpin for ExternalDelivery
impl UnwindSafe for ExternalDelivery
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