/*
* Manager API
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.0-dev
* Contact: support@babelforce.com
* Generated by: https://openapi-generator.tech
*/
use crate::gen::manager::models;
use serde::{Deserialize, Serialize};
/// IntegrationSessionVariable : The session variables exposed by one integration action.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct IntegrationSessionVariable {
/// The action these variables belong to.
#[serde(rename = "action")]
pub action: String,
#[serde(rename = "variables", skip_serializing_if = "Option::is_none")]
pub variables: Option<Vec<models::VariableDefinition>>,
}
impl IntegrationSessionVariable {
/// The session variables exposed by one integration action.
pub fn new(action: String) -> IntegrationSessionVariable {
IntegrationSessionVariable {
action,
variables: None,
}
}
}