pub struct CreateWebhookRequest {
pub url: String,
pub description: String,
pub events: Vec<WebhookEvent>,
pub enabled: Option<bool>,
}
Fields§
§url: String
The url of the webhook where notifications will be sent. URL must be valid, unique and https.
description: String
description of the webhook. should not contain special characters.
events: Vec<WebhookEvent>
event types the webhook will subscribe to
enabled: Option<bool>
The status of the webhook. If false, the webhook will not receive notifications.
Implementations§
Source§impl CreateWebhookRequest
impl CreateWebhookRequest
pub fn new( url: String, description: String, events: Vec<WebhookEvent>, ) -> CreateWebhookRequest
Trait Implementations§
Source§impl Clone for CreateWebhookRequest
impl Clone for CreateWebhookRequest
Source§fn clone(&self) -> CreateWebhookRequest
fn clone(&self) -> CreateWebhookRequest
Returns a copy 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 CreateWebhookRequest
impl Debug for CreateWebhookRequest
Source§impl Default for CreateWebhookRequest
impl Default for CreateWebhookRequest
Source§fn default() -> CreateWebhookRequest
fn default() -> CreateWebhookRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateWebhookRequest
impl<'de> Deserialize<'de> for CreateWebhookRequest
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 PartialEq for CreateWebhookRequest
impl PartialEq for CreateWebhookRequest
Source§impl Serialize for CreateWebhookRequest
impl Serialize for CreateWebhookRequest
impl StructuralPartialEq for CreateWebhookRequest
Auto Trait Implementations§
impl Freeze for CreateWebhookRequest
impl RefUnwindSafe for CreateWebhookRequest
impl Send for CreateWebhookRequest
impl Sync for CreateWebhookRequest
impl Unpin for CreateWebhookRequest
impl UnwindSafe for CreateWebhookRequest
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