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
sourceimpl<'de> Deserialize<'de> for Webhook
impl<'de> Deserialize<'de> for Webhook
sourcefn 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 Webhook
impl StructuralEq for Webhook
impl StructuralPartialEq for Webhook
Auto Trait Implementations
impl RefUnwindSafe for Webhook
impl Send for Webhook
impl Sync for Webhook
impl Unpin for Webhook
impl UnwindSafe for Webhook
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more