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