pub struct WebhookPayload {
pub email: Option<EmailPayload>,
pub push: Option<Vec<String>>,
pub request: Option<HashMap<String, String>>,
pub automation: Option<HashMap<String, String>>,
}Expand description
The JSON body posted to POST /webhook/{tenant_id}/{event_name}.
All fields are optional — the Notifica service fills any absent fields with the defaults configured per tenant and event.
Fields§
§email: Option<EmailPayload>§push: Option<Vec<String>>§request: Option<HashMap<String, String>>§automation: Option<HashMap<String, String>>Trait Implementations§
Source§impl Debug for WebhookPayload
impl Debug for WebhookPayload
Source§impl Default for WebhookPayload
impl Default for WebhookPayload
Source§fn default() -> WebhookPayload
fn default() -> WebhookPayload
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WebhookPayload
impl RefUnwindSafe for WebhookPayload
impl Send for WebhookPayload
impl Sync for WebhookPayload
impl Unpin for WebhookPayload
impl UnsafeUnpin for WebhookPayload
impl UnwindSafe for WebhookPayload
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