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