pub struct MetaDeletedHookConfig {
pub content_type: MetaDeletedHookConfigContentType,
pub insecure_ssl: MetaDeletedHookConfigInsecureSsl,
pub secret: Option<String>,
pub url: String,
}Expand description
Configuration object of the webhook
JSON schema
{
"description": "Configuration object of the webhook",
"type": "object",
"required": [
"content_type",
"insecure_ssl",
"url"
],
"properties": {
"content_type": {
"description": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.",
"type": "string",
"enum": [
"json",
"form"
]
},
"insecure_ssl": {
"description": "Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`.",
"type": "string",
"enum": [
"0",
"1"
]
},
"secret": {
"description": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).",
"type": "string"
},
"url": {
"description": "The URL to which the payloads will be delivered.",
"type": "string",
"format": "uri"
}
},
"additionalProperties": false
}Fields§
§content_type: MetaDeletedHookConfigContentTypeThe media type used to serialize the payloads. Supported values include json and form. The default is form.
insecure_ssl: MetaDeletedHookConfigInsecureSslDetermines whether the SSL certificate of the host for url will be verified when delivering payloads. Supported values include 0 (verification is performed) and 1 (verification is not performed). The default is 0.
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: StringThe URL to which the payloads will be delivered.
Implementations§
Source§impl MetaDeletedHookConfig
impl MetaDeletedHookConfig
pub fn builder() -> MetaDeletedHookConfig
Trait Implementations§
Source§impl Clone for MetaDeletedHookConfig
impl Clone for MetaDeletedHookConfig
Source§fn clone(&self) -> MetaDeletedHookConfig
fn clone(&self) -> MetaDeletedHookConfig
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 MetaDeletedHookConfig
impl Debug for MetaDeletedHookConfig
Source§impl<'de> Deserialize<'de> for MetaDeletedHookConfig
impl<'de> Deserialize<'de> for MetaDeletedHookConfig
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 From<&MetaDeletedHookConfig> for MetaDeletedHookConfig
impl From<&MetaDeletedHookConfig> for MetaDeletedHookConfig
Source§fn from(value: &MetaDeletedHookConfig) -> Self
fn from(value: &MetaDeletedHookConfig) -> Self
Converts to this type from the input type.
Source§impl From<MetaDeletedHookConfig> for MetaDeletedHookConfig
impl From<MetaDeletedHookConfig> for MetaDeletedHookConfig
Source§fn from(value: MetaDeletedHookConfig) -> Self
fn from(value: MetaDeletedHookConfig) -> Self
Converts to this type from the input type.
Source§impl Serialize for MetaDeletedHookConfig
impl Serialize for MetaDeletedHookConfig
Auto Trait Implementations§
impl Freeze for MetaDeletedHookConfig
impl RefUnwindSafe for MetaDeletedHookConfig
impl Send for MetaDeletedHookConfig
impl Sync for MetaDeletedHookConfig
impl Unpin for MetaDeletedHookConfig
impl UnwindSafe for MetaDeletedHookConfig
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