pub struct BeaconEvent {
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: String,
pub beacon: Box<BeaconContent>,
}Expand description
BeaconEvent : Event object for when a user enters the range of a LINE Beacon. You can reply to beacon 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: StringReply token used to send reply message to this event
beacon: Box<BeaconContent>Implementations§
Source§impl BeaconEvent
impl BeaconEvent
Sourcepub fn new(
type: String,
timestamp: i64,
mode: EventMode,
webhook_event_id: String,
delivery_context: DeliveryContext,
reply_token: String,
beacon: BeaconContent,
) -> BeaconEvent
pub fn new( type: String, timestamp: i64, mode: EventMode, webhook_event_id: String, delivery_context: DeliveryContext, reply_token: String, beacon: BeaconContent, ) -> BeaconEvent
Event object for when a user enters the range of a LINE Beacon. You can reply to beacon events.
Trait Implementations§
Source§impl Clone for BeaconEvent
impl Clone for BeaconEvent
Source§fn clone(&self) -> BeaconEvent
fn clone(&self) -> BeaconEvent
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 BeaconEvent
impl Debug for BeaconEvent
Source§impl Default for BeaconEvent
impl Default for BeaconEvent
Source§fn default() -> BeaconEvent
fn default() -> BeaconEvent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BeaconEvent
impl<'de> Deserialize<'de> for BeaconEvent
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 BeaconEvent
impl PartialEq for BeaconEvent
Source§impl Serialize for BeaconEvent
impl Serialize for BeaconEvent
impl StructuralPartialEq for BeaconEvent
Auto Trait Implementations§
impl Freeze for BeaconEvent
impl RefUnwindSafe for BeaconEvent
impl Send for BeaconEvent
impl Sync for BeaconEvent
impl Unpin for BeaconEvent
impl UnwindSafe for BeaconEvent
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