pub struct Payload { /* private fields */ }Expand description
Provider-specific webhook payload body retained for downstream DTO mapping.
Implementations§
Source§impl Payload
impl Payload
Sourcepub fn entity_data(&self) -> &Value
pub fn entity_data(&self) -> &Value
Returns the Gingr entity payload object carried by the webhook.
Sourcepub fn email_data(&self) -> Option<&Value>
pub fn email_data(&self) -> Option<&Value>
Returns Gingr email metadata when the event includes it.
Sourcepub fn recipients(&self) -> Option<&Vec<Value>>
pub fn recipients(&self) -> Option<&Vec<Value>>
Returns the provider recipient list for email-related webhook events.
Sourcepub fn provider_url(&self) -> Option<&str>
pub fn provider_url(&self) -> Option<&str>
Returns Gingr URL metadata included in the payload, if supplied.
Trait Implementations§
impl StructuralPartialEq for Payload
Auto Trait Implementations§
impl Freeze for Payload
impl RefUnwindSafe for Payload
impl Send for Payload
impl Sync for Payload
impl Unpin for Payload
impl UnsafeUnpin for Payload
impl UnwindSafe for Payload
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