Struct twilight_model::channel::webhook::Webhook [−][src]
pub struct Webhook {
pub application_id: Option<ApplicationId>,
pub avatar: Option<String>,
pub channel_id: ChannelId,
pub guild_id: Option<GuildId>,
pub id: WebhookId,
pub kind: WebhookType,
pub name: Option<String>,
pub source_channel: Option<WebhookChannel>,
pub source_guild: Option<WebhookGuild>,
pub token: Option<String>,
pub url: Option<String>,
pub user: Option<User>,
}
Fields
application_id: Option<ApplicationId>
avatar: Option<String>
channel_id: ChannelId
guild_id: Option<GuildId>
id: WebhookId
kind: WebhookType
name: Option<String>
source_channel: Option<WebhookChannel>
Partial channel object that a webhook is following.
source_guild: Option<WebhookGuild>
Partial guild object that a webhook is following.
token: Option<String>
url: Option<String>
Url used for executing the webhook.
Returned by the webhooks
OAuth2 flow.
user: Option<User>
Trait Implementations
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
Auto Trait Implementations
impl RefUnwindSafe for Webhook
impl UnwindSafe for Webhook
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more