pub struct UnsendEvent {
pub type: Option<String>,
pub source: Option<Box<Source>>,
pub timestamp: i64,
pub mode: EventMode,
pub webhook_event_id: String,
pub delivery_context: Box<DeliveryContext>,
pub unsend: Box<UnsendDetail>,
}Expand description
UnsendEvent : Event object for when the user unsends a message.
Fields§
§type: Option<String>Type of the event
source: Option<Box<Source>>§timestamp: i64Time of the event in milliseconds.
mode: EventMode§webhook_event_id: StringWebhook Event ID. An ID that uniquely identifies a webhook event. This is a string in ULID format.
delivery_context: Box<DeliveryContext>§unsend: Box<UnsendDetail>Implementations§
Source§impl UnsendEvent
impl UnsendEvent
Sourcepub fn new(
type: String,
timestamp: i64,
mode: EventMode,
webhook_event_id: String,
delivery_context: DeliveryContext,
unsend: UnsendDetail,
) -> UnsendEvent
pub fn new( type: String, timestamp: i64, mode: EventMode, webhook_event_id: String, delivery_context: DeliveryContext, unsend: UnsendDetail, ) -> UnsendEvent
Event object for when the user unsends a message.
Trait Implementations§
Source§impl Clone for UnsendEvent
impl Clone for UnsendEvent
Source§fn clone(&self) -> UnsendEvent
fn clone(&self) -> UnsendEvent
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 UnsendEvent
impl Debug for UnsendEvent
Source§impl Default for UnsendEvent
impl Default for UnsendEvent
Source§fn default() -> UnsendEvent
fn default() -> UnsendEvent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UnsendEvent
impl<'de> Deserialize<'de> for UnsendEvent
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 UnsendEvent
impl PartialEq for UnsendEvent
Source§impl Serialize for UnsendEvent
impl Serialize for UnsendEvent
impl StructuralPartialEq for UnsendEvent
Auto Trait Implementations§
impl Freeze for UnsendEvent
impl RefUnwindSafe for UnsendEvent
impl Send for UnsendEvent
impl Sync for UnsendEvent
impl Unpin for UnsendEvent
impl UnwindSafe for UnsendEvent
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