babelforce-manager-sdk 0.46.0

Rust SDK for the babelforce manager APIs — auth, user & agent management, call reporting, metrics, and task automations.
Documentation
/*
 * task-automation task schedule API
 *
 * execution of recurring time based tasks
 *
 * The version of the OpenAPI document: 3.63.10
 * Contact: support@babelforce.com
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct IntegrationProxyProperties {
    #[serde(rename = "integration_id")]
    pub integration_id: String,
    #[serde(rename = "type")]
    pub r#type: String,
    #[serde(rename = "params", skip_serializing_if = "Option::is_none")]
    pub params: Option<std::collections::HashMap<String, serde_json::Value>>,
    #[serde(rename = "context", skip_serializing_if = "Option::is_none")]
    pub context: Option<std::collections::HashMap<String, serde_json::Value>>,
    /// flat object of query parameters
    #[serde(rename = "queryParams", skip_serializing_if = "Option::is_none")]
    pub query_params: Option<std::collections::HashMap<String, serde_json::Value>>,
}

impl IntegrationProxyProperties {
    pub fn new(integration_id: String, r#type: String) -> IntegrationProxyProperties {
        IntegrationProxyProperties {
            integration_id,
            r#type,
            params: None,
            context: None,
            query_params: None,
        }
    }
}