pub struct WebhookEvent(pub String);Expand description
A webhook event type.
This is a transparent newtype over String with predefined constants
for all available event types.
Tuple Fields§
§0: StringImplementations§
Source§impl WebhookEvent
impl WebhookEvent
pub const SMS_RECEIVED: &'static str = "sms:received"
pub const SMS_DATA_RECEIVED: &'static str = "sms:data-received"
pub const SMS_SENT: &'static str = "sms:sent"
pub const SMS_DELIVERED: &'static str = "sms:delivered"
pub const SMS_FAILED: &'static str = "sms:failed"
pub const SMS_CANCELLED: &'static str = "sms:cancelled"
pub const SYSTEM_PING: &'static str = "system:ping"
pub const MMS_RECEIVED: &'static str = "mms:received"
pub const MMS_DOWNLOADED: &'static str = "mms:downloaded"
pub const APP_STARTED: &'static str = "app:started"
pub const SMS_BATCH_RECEIVED: &'static str = "sms:batch:received"
pub const SMS_BATCH_DATA_RECEIVED: &'static str = "sms:batch:data-received"
pub const MMS_BATCH_RECEIVED: &'static str = "mms:batch:received"
pub const MMS_BATCH_DOWNLOADED: &'static str = "mms:batch:downloaded"
Trait Implementations§
Source§impl Clone for WebhookEvent
impl Clone for WebhookEvent
Source§fn clone(&self) -> WebhookEvent
fn clone(&self) -> WebhookEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WebhookEvent
impl Debug for WebhookEvent
Source§impl<'de> Deserialize<'de> for WebhookEvent
impl<'de> Deserialize<'de> for WebhookEvent
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
impl Eq for WebhookEvent
Source§impl PartialEq for WebhookEvent
impl PartialEq for WebhookEvent
Source§impl Serialize for WebhookEvent
impl Serialize for WebhookEvent
impl StructuralPartialEq for WebhookEvent
Auto Trait Implementations§
impl Freeze for WebhookEvent
impl RefUnwindSafe for WebhookEvent
impl Send for WebhookEvent
impl Sync for WebhookEvent
impl Unpin for WebhookEvent
impl UnsafeUnpin for WebhookEvent
impl UnwindSafe for WebhookEvent
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