pub struct PostsuperEvent {
pub event_type: PostsuperEventType,
pub timestamp: DateTime<Utc>,
pub queue_id: Option<String>,
pub message_count: Option<u32>,
pub description: Option<String>,
}Expand description
Postsuper事件
Fields§
§event_type: PostsuperEventType事件类型
timestamp: DateTime<Utc>时间戳
queue_id: Option<String>队列ID(对于单个邮件删除)
message_count: Option<u32>删除的邮件数量(对于批量删除)
description: Option<String>操作描述
Implementations§
Source§impl PostsuperEvent
impl PostsuperEvent
Sourcepub fn message_removed(timestamp: DateTime<Utc>, queue_id: String) -> Self
pub fn message_removed(timestamp: DateTime<Utc>, queue_id: String) -> Self
创建邮件删除事件
Sourcepub fn bulk_deleted(timestamp: DateTime<Utc>, message_count: u32) -> Self
pub fn bulk_deleted(timestamp: DateTime<Utc>, message_count: u32) -> Self
创建批量删除事件
Trait Implementations§
Source§impl Clone for PostsuperEvent
impl Clone for PostsuperEvent
Source§fn clone(&self) -> PostsuperEvent
fn clone(&self) -> PostsuperEvent
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 PostsuperEvent
impl Debug for PostsuperEvent
Source§impl<'de> Deserialize<'de> for PostsuperEvent
impl<'de> Deserialize<'de> for PostsuperEvent
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 PostsuperEvent
impl PartialEq for PostsuperEvent
Source§impl Serialize for PostsuperEvent
impl Serialize for PostsuperEvent
impl StructuralPartialEq for PostsuperEvent
Auto Trait Implementations§
impl Freeze for PostsuperEvent
impl RefUnwindSafe for PostsuperEvent
impl Send for PostsuperEvent
impl Sync for PostsuperEvent
impl Unpin for PostsuperEvent
impl UnwindSafe for PostsuperEvent
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