pub struct PartialWebhook {
pub name: Option<String>,
pub avatar: Option<Attachment>,
pub channel_id: Option<String>,
pub token: Option<String>,
}Expand description
Partial webhook data
Fields§
§name: Option<String>The name of the webhook
avatar: Option<Attachment>The avatar of the webhook
channel_id: Option<String>The channel this webhook belongs to
token: Option<String>The private token for the webhook
Trait Implementations§
Source§impl Clone for PartialWebhook
impl Clone for PartialWebhook
Source§fn clone(&self) -> PartialWebhook
fn clone(&self) -> PartialWebhook
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PartialWebhook
impl Debug for PartialWebhook
Source§impl<'de> Deserialize<'de> for PartialWebhook
impl<'de> Deserialize<'de> for PartialWebhook
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 PartialWebhook
impl RefUnwindSafe for PartialWebhook
impl Send for PartialWebhook
impl Sync for PartialWebhook
impl Unpin for PartialWebhook
impl UnwindSafe for PartialWebhook
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