pub struct WebhookCreatedResponse {
pub webhook: Option<Webhook>,
pub secret: String,
pub data: Option<Webhook>,
}Expand description
Response from creating a webhook (includes secret).
Fields§
§webhook: Option<Webhook>The created webhook.
secret: StringThe webhook secret for signature verification.
data: Option<Webhook>Implementations§
Source§impl WebhookCreatedResponse
impl WebhookCreatedResponse
Sourcepub fn get_webhook(&self) -> Option<&Webhook>
pub fn get_webhook(&self) -> Option<&Webhook>
Gets the webhook, checking both nested and flattened forms.
Trait Implementations§
Source§impl Clone for WebhookCreatedResponse
impl Clone for WebhookCreatedResponse
Source§fn clone(&self) -> WebhookCreatedResponse
fn clone(&self) -> WebhookCreatedResponse
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 WebhookCreatedResponse
impl Debug for WebhookCreatedResponse
Source§impl<'de> Deserialize<'de> for WebhookCreatedResponse
impl<'de> Deserialize<'de> for WebhookCreatedResponse
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 WebhookCreatedResponse
impl RefUnwindSafe for WebhookCreatedResponse
impl Send for WebhookCreatedResponse
impl Sync for WebhookCreatedResponse
impl Unpin for WebhookCreatedResponse
impl UnwindSafe for WebhookCreatedResponse
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