nominal-api 0.1239.0

API bindings for the Nominal platform
Documentation
#[derive(
    Debug,
    Clone,
    conjure_object::serde::Serialize,
    conjure_object::serde::Deserialize,
    PartialEq,
    Eq,
    PartialOrd,
    Ord,
    Hash
)]
#[serde(crate = "conjure_object::serde")]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct SimpleWebhookIntegration {
    #[builder(default, into)]
    #[serde(rename = "hmacSecretRid", skip_serializing_if = "Option::is_none", default)]
    hmac_secret_rid: Option<conjure_object::ResourceIdentifier>,
    #[builder(default, into)]
    #[serde(rename = "contentType", skip_serializing_if = "Option::is_none", default)]
    content_type: Option<super::WebhookContentType>,
    #[builder(default, into)]
    #[serde(rename = "timeoutSeconds", skip_serializing_if = "Option::is_none", default)]
    timeout_seconds: Option<i32>,
    #[builder(default, into)]
    #[serde(rename = "customHeaders", skip_serializing_if = "Option::is_none", default)]
    custom_headers: Option<std::collections::BTreeMap<String, String>>,
}
impl SimpleWebhookIntegration {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new() -> Self {
        Self::builder().build()
    }
    /// Optional RID of secret containing HMAC-SHA256 signing key
    #[inline]
    pub fn hmac_secret_rid(&self) -> Option<&conjure_object::ResourceIdentifier> {
        self.hmac_secret_rid.as_ref().map(|o| &*o)
    }
    /// Content-Type for requests (default: application/json)
    #[inline]
    pub fn content_type(&self) -> Option<&super::WebhookContentType> {
        self.content_type.as_ref().map(|o| &*o)
    }
    /// HTTP request timeout in seconds (default: 30, max: 120)
    #[inline]
    pub fn timeout_seconds(&self) -> Option<i32> {
        self.timeout_seconds.as_ref().map(|o| *o)
    }
    /// Additional headers to include in all requests
    #[inline]
    pub fn custom_headers(&self) -> Option<&std::collections::BTreeMap<String, String>> {
        self.custom_headers.as_ref().map(|o| &*o)
    }
}