pub struct PickupEvent {
pub timestamp: DateTime<Utc>,
pub pid: Option<u32>,
pub event_type: PickupEventType,
}Fields§
§timestamp: DateTime<Utc>§pid: Option<u32>§event_type: PickupEventTypeImplementations§
Source§impl PickupEvent
impl PickupEvent
pub fn new( timestamp: DateTime<Utc>, pid: Option<u32>, event_type: PickupEventType, ) -> Self
Sourcepub fn config_override_warning(
timestamp: DateTime<Utc>,
pid: Option<u32>,
file_path: String,
line_number: u32,
parameter_name: String,
parameter_value: String,
) -> Self
pub fn config_override_warning( timestamp: DateTime<Utc>, pid: Option<u32>, file_path: String, line_number: u32, parameter_name: String, parameter_value: String, ) -> Self
创建配置覆盖警告事件
Sourcepub fn mail_pickup(
timestamp: DateTime<Utc>,
pid: Option<u32>,
queue_id: String,
uid: u32,
sender: String,
) -> Self
pub fn mail_pickup( timestamp: DateTime<Utc>, pid: Option<u32>, queue_id: String, uid: u32, sender: String, ) -> Self
创建邮件拾取事件
Sourcepub fn parameter_name(&self) -> Option<&str>
pub fn parameter_name(&self) -> Option<&str>
获取参数名称(仅配置覆盖警告)
Trait Implementations§
Source§impl Clone for PickupEvent
impl Clone for PickupEvent
Source§fn clone(&self) -> PickupEvent
fn clone(&self) -> PickupEvent
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 PickupEvent
impl Debug for PickupEvent
Source§impl<'de> Deserialize<'de> for PickupEvent
impl<'de> Deserialize<'de> for PickupEvent
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 PartialEq for PickupEvent
impl PartialEq for PickupEvent
Source§impl Serialize for PickupEvent
impl Serialize for PickupEvent
impl StructuralPartialEq for PickupEvent
Auto Trait Implementations§
impl Freeze for PickupEvent
impl RefUnwindSafe for PickupEvent
impl Send for PickupEvent
impl Sync for PickupEvent
impl Unpin for PickupEvent
impl UnwindSafe for PickupEvent
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