pub struct SendmailEvent {
pub timestamp: String,
pub process_id: String,
pub event_type: SendmailEventType,
}
Expand description
Sendmail兼容接口事件
记录通过Postfix的sendmail兼容接口产生的事件
Fields§
§timestamp: String
事件发生时间戳(原始字符串格式) 保持原始时间格式,如“Apr 24 17:20:55“
process_id: String
进程ID(字符串格式) sendmail兼容命令的进程标识符
event_type: SendmailEventType
事件类型(通常为致命使用错误)
Trait Implementations§
Source§impl Clone for SendmailEvent
impl Clone for SendmailEvent
Source§fn clone(&self) -> SendmailEvent
fn clone(&self) -> SendmailEvent
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 SendmailEvent
impl Debug for SendmailEvent
Source§impl<'de> Deserialize<'de> for SendmailEvent
impl<'de> Deserialize<'de> for SendmailEvent
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
Source§impl Display for SendmailEvent
impl Display for SendmailEvent
Source§impl PartialEq for SendmailEvent
impl PartialEq for SendmailEvent
Source§impl Serialize for SendmailEvent
impl Serialize for SendmailEvent
impl StructuralPartialEq for SendmailEvent
Auto Trait Implementations§
impl Freeze for SendmailEvent
impl RefUnwindSafe for SendmailEvent
impl Send for SendmailEvent
impl Sync for SendmailEvent
impl Unpin for SendmailEvent
impl UnwindSafe for SendmailEvent
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