pub struct WebhookSubscription {
pub id: Uuid,
pub tenant_id: String,
pub url: String,
pub event_types: Vec<String>,
pub entity_ids: Vec<String>,
pub secret: String,
pub active: bool,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub description: Option<String>,
}Expand description
A registered webhook subscription
Fields§
§id: UuidUnique ID for this subscription
tenant_id: StringTenant that owns this webhook
url: StringURL to deliver events to
event_types: Vec<String>Optional: only deliver events matching these event types (glob patterns) If empty, all events are delivered
entity_ids: Vec<String>Optional: only deliver events matching these entity IDs
secret: StringSecret used to sign webhook payloads (HMAC-SHA256)
active: boolWhether this webhook is currently active
created_at: DateTime<Utc>When this webhook was created
updated_at: DateTime<Utc>When this webhook was last updated
description: Option<String>Optional description
Trait Implementations§
Source§impl Clone for WebhookSubscription
impl Clone for WebhookSubscription
Source§fn clone(&self) -> WebhookSubscription
fn clone(&self) -> WebhookSubscription
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 WebhookSubscription
impl Debug for WebhookSubscription
Source§impl<'de> Deserialize<'de> for WebhookSubscription
impl<'de> Deserialize<'de> for WebhookSubscription
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 WebhookSubscription
impl RefUnwindSafe for WebhookSubscription
impl Send for WebhookSubscription
impl Sync for WebhookSubscription
impl Unpin for WebhookSubscription
impl UnsafeUnpin for WebhookSubscription
impl UnwindSafe for WebhookSubscription
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more