pub enum WebhookType {
Incoming,
ChannelFollower,
Application,
Unknown(u8),
}
Variants§
Incoming
ChannelFollower
Application
Webhooks used with interactions.
Unknown(u8)
Variant value is unknown to the library.
Trait Implementations§
source§impl Clone for WebhookType
impl Clone for WebhookType
source§fn clone(&self) -> WebhookType
fn clone(&self) -> WebhookType
Returns a copy 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 WebhookType
impl Debug for WebhookType
source§impl Default for WebhookType
impl Default for WebhookType
source§impl<'de> Deserialize<'de> for WebhookType
impl<'de> Deserialize<'de> for WebhookType
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 From<WebhookType> for u8
impl From<WebhookType> for u8
source§fn from(value: WebhookType) -> Self
fn from(value: WebhookType) -> Self
Converts to this type from the input type.
source§impl From<u8> for WebhookType
impl From<u8> for WebhookType
source§impl Hash for WebhookType
impl Hash for WebhookType
source§impl PartialEq for WebhookType
impl PartialEq for WebhookType
source§impl Serialize for WebhookType
impl Serialize for WebhookType
impl Copy for WebhookType
impl Eq for WebhookType
impl StructuralPartialEq for WebhookType
Auto Trait Implementations§
impl Freeze for WebhookType
impl RefUnwindSafe for WebhookType
impl Send for WebhookType
impl Sync for WebhookType
impl Unpin for WebhookType
impl UnwindSafe for WebhookType
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)