pub struct LeaveEvent {
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>,
}Expand description
LeaveEvent : Event object for when a user removes your LINE Official Account from a group chat or when your LINE Official Account leaves a group chat or multi-person chat.
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>Implementations§
Source§impl LeaveEvent
impl LeaveEvent
Sourcepub fn new(
type: String,
timestamp: i64,
mode: EventMode,
webhook_event_id: String,
delivery_context: DeliveryContext,
) -> LeaveEvent
pub fn new( type: String, timestamp: i64, mode: EventMode, webhook_event_id: String, delivery_context: DeliveryContext, ) -> LeaveEvent
Event object for when a user removes your LINE Official Account from a group chat or when your LINE Official Account leaves a group chat or multi-person chat.
Trait Implementations§
Source§impl Clone for LeaveEvent
impl Clone for LeaveEvent
Source§fn clone(&self) -> LeaveEvent
fn clone(&self) -> LeaveEvent
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 LeaveEvent
impl Debug for LeaveEvent
Source§impl Default for LeaveEvent
impl Default for LeaveEvent
Source§fn default() -> LeaveEvent
fn default() -> LeaveEvent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LeaveEvent
impl<'de> Deserialize<'de> for LeaveEvent
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 LeaveEvent
impl PartialEq for LeaveEvent
Source§impl Serialize for LeaveEvent
impl Serialize for LeaveEvent
impl StructuralPartialEq for LeaveEvent
Auto Trait Implementations§
impl Freeze for LeaveEvent
impl RefUnwindSafe for LeaveEvent
impl Send for LeaveEvent
impl Sync for LeaveEvent
impl Unpin for LeaveEvent
impl UnwindSafe for LeaveEvent
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