pub struct PingEventHookConfig {
pub content_type: PingEventHookConfigContentType,
pub insecure_ssl: PingEventHookConfigInsecureSsl,
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: PingEventHookConfigContentTypeThe media type used to serialize the payloads. Supported values include json and form. The default is form.
insecure_ssl: PingEventHookConfigInsecureSslDetermines 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 PingEventHookConfig
impl PingEventHookConfig
pub fn builder() -> PingEventHookConfig
Trait Implementations§
Source§impl Clone for PingEventHookConfig
impl Clone for PingEventHookConfig
Source§fn clone(&self) -> PingEventHookConfig
fn clone(&self) -> PingEventHookConfig
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 PingEventHookConfig
impl Debug for PingEventHookConfig
Source§impl<'de> Deserialize<'de> for PingEventHookConfig
impl<'de> Deserialize<'de> for PingEventHookConfig
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<&PingEventHookConfig> for PingEventHookConfig
impl From<&PingEventHookConfig> for PingEventHookConfig
Source§fn from(value: &PingEventHookConfig) -> Self
fn from(value: &PingEventHookConfig) -> Self
Converts to this type from the input type.
Source§impl From<PingEventHookConfig> for PingEventHookConfig
impl From<PingEventHookConfig> for PingEventHookConfig
Source§fn from(value: PingEventHookConfig) -> Self
fn from(value: PingEventHookConfig) -> Self
Converts to this type from the input type.
Source§impl Serialize for PingEventHookConfig
impl Serialize for PingEventHookConfig
Auto Trait Implementations§
impl Freeze for PingEventHookConfig
impl RefUnwindSafe for PingEventHookConfig
impl Send for PingEventHookConfig
impl Sync for PingEventHookConfig
impl Unpin for PingEventHookConfig
impl UnwindSafe for PingEventHookConfig
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