pub struct AccountLinkEvent {
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 reply_token: Option<String>,
pub link: Box<LinkContent>,
}Expand description
AccountLinkEvent : Event object for when a user has linked their LINE account with a provider’s service account. You can reply to account link events.
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>§reply_token: Option<String>Reply token used to send reply message to this event. This property won’t be included if linking the account has failed.
link: Box<LinkContent>Implementations§
Source§impl AccountLinkEvent
impl AccountLinkEvent
Sourcepub fn new(
type: String,
timestamp: i64,
mode: EventMode,
webhook_event_id: String,
delivery_context: DeliveryContext,
link: LinkContent,
) -> AccountLinkEvent
pub fn new( type: String, timestamp: i64, mode: EventMode, webhook_event_id: String, delivery_context: DeliveryContext, link: LinkContent, ) -> AccountLinkEvent
Event object for when a user has linked their LINE account with a provider’s service account. You can reply to account link events.
Trait Implementations§
Source§impl Clone for AccountLinkEvent
impl Clone for AccountLinkEvent
Source§fn clone(&self) -> AccountLinkEvent
fn clone(&self) -> AccountLinkEvent
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 AccountLinkEvent
impl Debug for AccountLinkEvent
Source§impl Default for AccountLinkEvent
impl Default for AccountLinkEvent
Source§fn default() -> AccountLinkEvent
fn default() -> AccountLinkEvent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AccountLinkEvent
impl<'de> Deserialize<'de> for AccountLinkEvent
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 AccountLinkEvent
impl PartialEq for AccountLinkEvent
Source§impl Serialize for AccountLinkEvent
impl Serialize for AccountLinkEvent
impl StructuralPartialEq for AccountLinkEvent
Auto Trait Implementations§
impl Freeze for AccountLinkEvent
impl RefUnwindSafe for AccountLinkEvent
impl Send for AccountLinkEvent
impl Sync for AccountLinkEvent
impl Unpin for AccountLinkEvent
impl UnwindSafe for AccountLinkEvent
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