pub struct Webhook {
pub webhook_id: String,
pub url: String,
pub secret: Option<String>,
pub event_types: Vec<String>,
pub inbox_ids: Vec<String>,
pub pod_ids: Vec<String>,
pub enabled: bool,
pub client_id: Option<String>,
pub updated_at: Option<String>,
pub created_at: Option<String>,
}Expand description
A webhook subscription, as the API returns it.
Fields§
§webhook_id: StringUnique id, used to delete the subscription.
url: StringThe subscribed HTTPS endpoint.
secret: Option<String>Signing secret, returned once, on creation.
event_types: Vec<String>Subscribed event types.
inbox_ids: Vec<String>Inboxes the subscription is limited to; empty means all.
pod_ids: Vec<String>Pods the subscription is limited to; empty means all.
enabled: boolWhether the subscription currently delivers.
client_id: Option<String>Your own reference id, echoed back if set on creation.
updated_at: Option<String>Timestamp the subscription was last updated (RFC 3339).
created_at: Option<String>Timestamp the subscription was created (RFC 3339).
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
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