pub struct Webhook {
pub _id: Option<String>,
pub name: Option<String>,
pub url: Option<String>,
pub secret: Option<String>,
pub events: Option<Vec<Events>>,
pub is_active: Option<bool>,
pub last_fired_at: Option<String>,
pub failure_count: Option<i32>,
pub custom_headers: Option<HashMap<String, String>>,
}Expand description
Webhook : Individual webhook configuration for receiving real-time notifications
Fields§
§_id: Option<String>Unique webhook identifier
name: Option<String>Webhook name (for identification)
url: Option<String>Webhook endpoint URL
secret: Option<String>Secret key for HMAC-SHA256 signature verification.
events: Option<Vec<Events>>Events subscribed to
is_active: Option<bool>Whether webhook delivery is enabled
last_fired_at: Option<String>Timestamp of last successful webhook delivery
failure_count: Option<i32>Consecutive delivery failures (resets on success, webhook disabled at 10)
custom_headers: Option<HashMap<String, String>>Custom headers included in webhook requests
Implementations§
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
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 UnsafeUnpin 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