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
impl Eq for Webhook
impl StructuralPartialEq for Webhook
Auto Trait Implementations§
impl Freeze for Webhook
impl RefUnwindSafe for Webhook
impl Send for Webhook
impl Sync for Webhook
impl Unpin for Webhook
impl UnwindSafe for Webhook
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
)