pub struct Webhook {
pub id: String,
pub url: String,
pub events: Vec<String>,
pub secret: String,
pub is_active: bool,
pub created_at: String,
}Expand description
A configured webhook endpoint. secret is returned in plaintext.
Fields§
§id: StringWebhook id.
url: StringDestination URL.
events: Vec<String>Subscribed event names.
secret: StringHMAC signing secret (plaintext on every read).
is_active: boolWhether the webhook is active.
created_at: StringCreation time.
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