pub struct WebhookStore {
pub active: Option<bool>,
pub title: String,
pub triggers: Option<Vec<WebhookTrigger>>,
pub responses: Option<Vec<WebhookResponse>>,
pub deliveries: Option<Vec<WebhookDelivery>>,
pub url: String,
}Fields§
§active: Option<bool>Boolean to indicate if the webhook is active
title: StringA title for the webhook for easy recognition.
triggers: Option<Vec<WebhookTrigger>>§responses: Option<Vec<WebhookResponse>>§deliveries: Option<Vec<WebhookDelivery>>§url: StringThe URL of the webhook. Has to start with https.
Implementations§
Source§impl WebhookStore
impl WebhookStore
pub fn new(title: String, url: String) -> WebhookStore
Trait Implementations§
Source§impl Clone for WebhookStore
impl Clone for WebhookStore
Source§impl Debug for WebhookStore
impl Debug for WebhookStore
Source§impl Default for WebhookStore
impl Default for WebhookStore
Source§impl<'de> Deserialize<'de> for WebhookStore
impl<'de> Deserialize<'de> for WebhookStore
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
Source§impl Display for WebhookStore
impl Display for WebhookStore
Source§impl PartialEq for WebhookStore
impl PartialEq for WebhookStore
Source§impl Serialize for WebhookStore
impl Serialize for WebhookStore
impl StructuralPartialEq for WebhookStore
Auto Trait Implementations§
impl Freeze for WebhookStore
impl RefUnwindSafe for WebhookStore
impl Send for WebhookStore
impl Sync for WebhookStore
impl Unpin for WebhookStore
impl UnsafeUnpin for WebhookStore
impl UnwindSafe for WebhookStore
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