pub struct Config<'a> {
pub url: Option<Cow<'a, str>>,
pub content_type: Option<Cow<'a, str>>,
pub secret: Option<Cow<'a, str>>,
pub insecure_ssl: Option<Value>,
pub token: Option<Cow<'a, str>>,
pub digest: Option<Cow<'a, str>>,
pub additionalProperties: HashMap<Cow<'a, str>, Value>,
}
Expand description
Key/value pairs to provide settings for this webhook. These are defined below.
Fields§
§url: Option<Cow<'a, str>>
§content_type: Option<Cow<'a, str>>
The media type used to serialize the payloads. Supported values include json
and form
. The default is form
.
§Example
"\"json\""
secret: Option<Cow<'a, str>>
If provided, the secret
will be used as the key
to generate the HMAC hex digest value for delivery signature headers.
§Example
"\"********\""
insecure_ssl: Option<Value>
§token: Option<Cow<'a, str>>
§Example
"\"abc\""
digest: Option<Cow<'a, str>>
§Example
"\"sha256\""
additionalProperties: HashMap<Cow<'a, str>, Value>
Trait Implementations§
Source§impl<'de, 'a> Deserialize<'de> for Config<'a>
impl<'de, 'a> Deserialize<'de> for Config<'a>
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
impl<'a> Eq for Config<'a>
impl<'a> StructuralPartialEq for Config<'a>
Auto Trait Implementations§
impl<'a> Freeze for Config<'a>
impl<'a> RefUnwindSafe for Config<'a>
impl<'a> Send for Config<'a>
impl<'a> Sync for Config<'a>
impl<'a> Unpin for Config<'a>
impl<'a> UnwindSafe for Config<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.