pub struct CreateWebhookRequest {
pub url: String,
pub secret: Option<String>,
pub events: Vec<String>,
pub content_type: String,
pub insecure_ssl: bool,
}Expand description
Request to create a webhook.
Fields§
§url: StringCallback URL.
secret: Option<String>Optional secret for HMAC signing.
events: Vec<String>Events to trigger the webhook.
content_type: StringContent type (default: application/json).
insecure_ssl: boolWhether to verify SSL (default: true, so insecure_ssl is false).
Trait Implementations§
Source§impl Clone for CreateWebhookRequest
impl Clone for CreateWebhookRequest
Source§fn clone(&self) -> CreateWebhookRequest
fn clone(&self) -> CreateWebhookRequest
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 CreateWebhookRequest
impl Debug for CreateWebhookRequest
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
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