pub struct BotSuspendedEvent {
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
BotSuspendedEvent : This event indicates that the LINE Official Account has been suspended (Suspend). Sent to the webhook URL server of the module channel.
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 BotSuspendedEvent
impl BotSuspendedEvent
Sourcepub fn new(
type: String,
timestamp: i64,
mode: EventMode,
webhook_event_id: String,
delivery_context: DeliveryContext,
) -> BotSuspendedEvent
pub fn new( type: String, timestamp: i64, mode: EventMode, webhook_event_id: String, delivery_context: DeliveryContext, ) -> BotSuspendedEvent
This event indicates that the LINE Official Account has been suspended (Suspend). Sent to the webhook URL server of the module channel.
Trait Implementations§
Source§impl Clone for BotSuspendedEvent
impl Clone for BotSuspendedEvent
Source§fn clone(&self) -> BotSuspendedEvent
fn clone(&self) -> BotSuspendedEvent
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 BotSuspendedEvent
impl Debug for BotSuspendedEvent
Source§impl Default for BotSuspendedEvent
impl Default for BotSuspendedEvent
Source§fn default() -> BotSuspendedEvent
fn default() -> BotSuspendedEvent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BotSuspendedEvent
impl<'de> Deserialize<'de> for BotSuspendedEvent
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 BotSuspendedEvent
impl PartialEq for BotSuspendedEvent
Source§impl Serialize for BotSuspendedEvent
impl Serialize for BotSuspendedEvent
impl StructuralPartialEq for BotSuspendedEvent
Auto Trait Implementations§
impl Freeze for BotSuspendedEvent
impl RefUnwindSafe for BotSuspendedEvent
impl Send for BotSuspendedEvent
impl Sync for BotSuspendedEvent
impl Unpin for BotSuspendedEvent
impl UnwindSafe for BotSuspendedEvent
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