pub struct ConfigNotificationsGetWebhookResponseDataInner {
pub body: Option<String>,
pub comment: Option<String>,
pub disable: Option<bool>,
pub header: Option<Vec<ConfigNotificationsGetWebhookResponseDataInnerHeaderInner>>,
pub method: PbsMethodEnum,
pub name: String,
pub origin: Option<PbsOriginEnum>,
pub secret: Option<Vec<ConfigNotificationsGetWebhookResponseDataInnerHeaderInner>>,
pub url: String,
}Fields§
§body: Option<String>The HTTP body to send. Supports templating.
comment: Option<String>Comment.
disable: Option<bool>Disable this target.
header: Option<Vec<ConfigNotificationsGetWebhookResponseDataInnerHeaderInner>>Array of HTTP headers. Each entry is a property string with a name and a value. The value property contains the header in base64 encoding. Supports templating.
method: PbsMethodEnumHTTP Method to use.
name: StringName schema for targets and matchers
origin: Option<PbsOriginEnum>The origin of a notification configuration entry.
secret: Option<Vec<ConfigNotificationsGetWebhookResponseDataInnerHeaderInner>>Array of secrets. Each entry is a property string with a name and an optional value. The value property contains the secret in base64 encoding. For any API endpoints returning the endpoint config, only the secret name but not the value will be returned. When updating the config, also send all secrets that you want to keep, setting only the name but not the value. Can be accessed from templates.
url: StringHTTP(s) url with optional port.
Implementations§
Source§impl ConfigNotificationsGetWebhookResponseDataInner
impl ConfigNotificationsGetWebhookResponseDataInner
pub fn new( method: PbsMethodEnum, name: String, url: String, ) -> ConfigNotificationsGetWebhookResponseDataInner
Trait Implementations§
Source§impl Clone for ConfigNotificationsGetWebhookResponseDataInner
impl Clone for ConfigNotificationsGetWebhookResponseDataInner
Source§fn clone(&self) -> ConfigNotificationsGetWebhookResponseDataInner
fn clone(&self) -> ConfigNotificationsGetWebhookResponseDataInner
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for ConfigNotificationsGetWebhookResponseDataInner
impl Default for ConfigNotificationsGetWebhookResponseDataInner
Source§fn default() -> ConfigNotificationsGetWebhookResponseDataInner
fn default() -> ConfigNotificationsGetWebhookResponseDataInner
Source§impl<'de> Deserialize<'de> for ConfigNotificationsGetWebhookResponseDataInner
impl<'de> Deserialize<'de> for ConfigNotificationsGetWebhookResponseDataInner
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>,
Source§impl PartialEq for ConfigNotificationsGetWebhookResponseDataInner
impl PartialEq for ConfigNotificationsGetWebhookResponseDataInner
Source§fn eq(&self, other: &ConfigNotificationsGetWebhookResponseDataInner) -> bool
fn eq(&self, other: &ConfigNotificationsGetWebhookResponseDataInner) -> bool
self and other values to be equal, and is used by ==.