Struct twilight_model::channel::webhook::Webhook
source · pub struct Webhook {
pub application_id: Option<Id<ApplicationMarker>>,
pub avatar: Option<ImageHash>,
pub channel_id: Id<ChannelMarker>,
pub guild_id: Option<Id<GuildMarker>>,
pub id: Id<WebhookMarker>,
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<Id<ApplicationMarker>>
§avatar: Option<ImageHash>
§channel_id: Id<ChannelMarker>
§guild_id: Option<Id<GuildMarker>>
§id: Id<WebhookMarker>
§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§
source§impl<'de> Deserialize<'de> for Webhook
impl<'de> Deserialize<'de> for Webhook
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