pub struct WebhookConfig {
pub content_type: Option<String>,
pub insecure_ssl: Option<Box<WebhookConfigInsecureSsl>>,
pub secret: Option<String>,
pub url: Option<String>,
}
Fields§
§content_type: Option<String>
The media type used to serialize the payloads. Supported values include json
and form
. The default is form
.
insecure_ssl: Option<Box<WebhookConfigInsecureSsl>>
§secret: Option<String>
If provided, the secret
will be used as the key
to generate the HMAC hex digest value for delivery signature headers.
url: Option<String>
The URL to which the payloads will be delivered.
Implementations§
Source§impl WebhookConfig
impl WebhookConfig
pub fn new() -> WebhookConfig
Trait Implementations§
Source§impl Clone for WebhookConfig
impl Clone for WebhookConfig
Source§fn clone(&self) -> WebhookConfig
fn clone(&self) -> WebhookConfig
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 WebhookConfig
impl Debug for WebhookConfig
Source§impl Default for WebhookConfig
impl Default for WebhookConfig
Source§fn default() -> WebhookConfig
fn default() -> WebhookConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WebhookConfig
impl<'de> Deserialize<'de> for WebhookConfig
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 WebhookConfig
impl PartialEq for WebhookConfig
Source§impl Serialize for WebhookConfig
impl Serialize for WebhookConfig
impl StructuralPartialEq for WebhookConfig
Auto Trait Implementations§
impl Freeze for WebhookConfig
impl RefUnwindSafe for WebhookConfig
impl Send for WebhookConfig
impl Sync for WebhookConfig
impl Unpin for WebhookConfig
impl UnwindSafe for WebhookConfig
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