Enum twilight_model::channel::webhook::WebhookType
source · 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<WebhookType> for WebhookType
impl PartialEq<WebhookType> for WebhookType
source§fn eq(&self, other: &WebhookType) -> bool
fn eq(&self, other: &WebhookType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.