babelforce-manager-sdk 0.44.0

Rust SDK for the babelforce manager APIs — auth, user & agent management, call reporting, metrics, and task automations.
Documentation
/*
 * task-automation API
 *
 * task-automation engine to automate and customize web based integration processes
 *
 * The version of the OpenAPI document: 3.63.10
 * Contact: support@babelforce.com
 * Generated by: https://openapi-generator.tech
 */

use crate::gen::task_automation::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct HttpActionProperties {
    /// payload of the http call
    #[serde(rename = "body", skip_serializing_if = "Option::is_none")]
    pub body: Option<std::collections::HashMap<String, serde_json::Value>>,
    /// http method
    #[serde(rename = "method")]
    pub method: String,
    #[serde(rename = "checkCertificate", skip_serializing_if = "Option::is_none")]
    pub check_certificate: Option<bool>,
    /// flat key value object
    #[serde(rename = "queryParams", skip_serializing_if = "Option::is_none")]
    pub query_params: Option<serde_json::Value>,
    #[serde(rename = "header", skip_serializing_if = "Option::is_none")]
    pub header: Option<std::collections::HashMap<String, serde_json::Value>>,
    #[serde(rename = "url")]
    pub url: String,
    #[serde(rename = "mTLS", skip_serializing_if = "Option::is_none")]
    pub m_tls: Option<Box<models::HttpActionPropertiesMTls>>,
}

impl HttpActionProperties {
    pub fn new(method: String, url: String) -> HttpActionProperties {
        HttpActionProperties {
            body: None,
            method,
            check_certificate: None,
            query_params: None,
            header: None,
            url,
            m_tls: None,
        }
    }
}