pub struct WebhookSamplePayloadResponse {
pub event_type: Option<String>,
pub sample_delivery: Option<WebhookSampleDelivery>,
pub signature_header: Option<String>,
pub note: Option<String>,
pub samples: HashMap<String, WebhookSamplePayloadSample>,
pub usage: Option<String>,
pub extra: HashMap<String, Value>,
}Expand description
Response from
Client::get_webhook_sample_payload.
Covers both variants the endpoint returns:
- The single-event-type variant (when
event_typeis passed):event_type,sample_delivery,signature_header,noteare populated. - The all-types variant (when
event_typeis omitted):samplesandusageare populated.
Callers can branch on which fields are populated.
Fields§
§event_type: Option<String>Event type (single-variant only).
sample_delivery: Option<WebhookSampleDelivery>Sample delivery body (single-variant only).
signature_header: Option<String>Example signature header line (single-variant only).
note: Option<String>Free-text guidance from the server.
samples: HashMap<String, WebhookSamplePayloadSample>Map of event type → sample (all-types variant).
usage: Option<String>Free-text guidance (all-types variant).
extra: HashMap<String, Value>Forward-compatible bucket.
Trait Implementations§
Source§impl Clone for WebhookSamplePayloadResponse
impl Clone for WebhookSamplePayloadResponse
Source§fn clone(&self) -> WebhookSamplePayloadResponse
fn clone(&self) -> WebhookSamplePayloadResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WebhookSamplePayloadResponse
impl Debug for WebhookSamplePayloadResponse
Source§impl Default for WebhookSamplePayloadResponse
impl Default for WebhookSamplePayloadResponse
Source§fn default() -> WebhookSamplePayloadResponse
fn default() -> WebhookSamplePayloadResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WebhookSamplePayloadResponse
impl<'de> Deserialize<'de> for WebhookSamplePayloadResponse
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 PartialEq for WebhookSamplePayloadResponse
impl PartialEq for WebhookSamplePayloadResponse
Source§fn eq(&self, other: &WebhookSamplePayloadResponse) -> bool
fn eq(&self, other: &WebhookSamplePayloadResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WebhookSamplePayloadResponse
Auto Trait Implementations§
impl Freeze for WebhookSamplePayloadResponse
impl RefUnwindSafe for WebhookSamplePayloadResponse
impl Send for WebhookSamplePayloadResponse
impl Sync for WebhookSamplePayloadResponse
impl Unpin for WebhookSamplePayloadResponse
impl UnsafeUnpin for WebhookSamplePayloadResponse
impl UnwindSafe for WebhookSamplePayloadResponse
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