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