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