pub struct Webhook {
pub id: Snowflake,
pub kind: Option<u8>,
pub guild_id: Option<Snowflake>,
pub channel_id: Option<Snowflake>,
pub user: Option<User>,
pub name: Option<String>,
pub avatar: Option<String>,
pub token: Option<String>,
pub url: Option<String>,
}Expand description
A webhook. Use Http::execute_webhook to post through one.
Fields§
§id: Snowflake§kind: Option<u8>§guild_id: Option<Snowflake>§channel_id: Option<Snowflake>§user: Option<User>§name: Option<String>§avatar: Option<String>§token: Option<String>§url: Option<String>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
Auto Trait Implementations§
impl Freeze for Webhook
impl RefUnwindSafe for Webhook
impl Send for Webhook
impl Sync for Webhook
impl Unpin for Webhook
impl UnsafeUnpin 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