/*
* CrowdStrike API Specification
*
* Use this API specification as a reference for the API endpoints you can use to interact with your Falcon environment. These endpoints support authentication via OAuth2 and interact with detections and network containment. For detailed usage guides and examples, see our [documentation inside the Falcon console](https://falcon.crowdstrike.com/support/documentation). To use the APIs described below, combine the base URL with the path shown for each API endpoint. For commercial cloud customers, your base URL is `https://api.crowdstrike.com`. Each API endpoint requires authorization via an OAuth2 token. Your first API request should retrieve an OAuth2 token using the `oauth2/token` endpoint, such as `https://api.crowdstrike.com/oauth2/token`. For subsequent requests, include the OAuth2 token in an HTTP authorization header. Tokens expire after 30 minutes, after which you should make a new token request to continue making API requests.
*
* The version of the OpenAPI document: rolling
*
* Generated by: https://openapi-generator.tech
*/
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct WebhooktriggerHmacConfig {
/// Delimiter for fields in HMAC calculation (dot|comma)
#[serde(rename = "field_delimiter", skip_serializing_if = "Option::is_none")]
pub field_delimiter: Option<String>,
/// Request components to include in HMAC calculation (body|timestamp|message_id)
#[serde(rename = "fields", skip_serializing_if = "Option::is_none")]
pub fields: Option<Vec<String>>,
/// Hash function to use for HMAC (e.g., sha256)
#[serde(rename = "hash_function", skip_serializing_if = "Option::is_none")]
pub hash_function: Option<String>,
/// Name of the header containing the webhook message ID
#[serde(
rename = "message_id_header_name",
skip_serializing_if = "Option::is_none"
)]
pub message_id_header_name: Option<String>,
/// Secret key for HMAC signing
#[serde(rename = "secret", skip_serializing_if = "Option::is_none")]
pub secret: Option<String>,
/// Encoding format for the signature
#[serde(rename = "signature_encoding", skip_serializing_if = "Option::is_none")]
pub signature_encoding: Option<String>,
/// Name of the header containing the HMAC signature
#[serde(
rename = "signature_header_name",
skip_serializing_if = "Option::is_none"
)]
pub signature_header_name: Option<String>,
/// Prefix of the HMAC signature which defines the signature format
#[serde(rename = "signature_prefix", skip_serializing_if = "Option::is_none")]
pub signature_prefix: Option<String>,
/// Name of the header containing the timestamp
#[serde(
rename = "timestamp_header_name",
skip_serializing_if = "Option::is_none"
)]
pub timestamp_header_name: Option<String>,
}
impl WebhooktriggerHmacConfig {
pub fn new() -> WebhooktriggerHmacConfig {
WebhooktriggerHmacConfig {
field_delimiter: None,
fields: None,
hash_function: None,
message_id_header_name: None,
secret: None,
signature_encoding: None,
signature_header_name: None,
signature_prefix: None,
timestamp_header_name: None,
}
}
}