pub struct Webhook {
pub type: WebhookType,
pub data: WebhookData,
pub extra: ExtraValues,
}Expand description
The main webhook data type.
Fields§
§type: WebhookTypeThe type of webhook update.
data: WebhookDataThe webhook data
extra: ExtraValuesThe value had extra fields that weren’t parsed into another field.
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
Source§impl HasExtraData for Webhook
Available on crate feature decode_everything only.
impl HasExtraData for Webhook
Available on crate feature
decode_everything only.Source§fn has_extra_data(&self) -> bool
fn has_extra_data(&self) -> bool
Recursively check if any extra data is present on this object or
any of it’s children.
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