/*
* 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};
/// Setting : A customer setting: the typed value stored for a registered scope/key pair. Valid scope/key pairs are a closed set (see the typed /api/v2/settings/{scope}/{key} endpoints for the documented pairs).
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Setting {
#[serde(rename = "scope")]
pub scope: String,
#[serde(rename = "key")]
pub key: String,
/// The typed settings value; its shape is specific to the scope/key pair.
#[serde(rename = "data")]
pub data: std::collections::HashMap<String, serde_json::Value>,
}
impl Setting {
/// A customer setting: the typed value stored for a registered scope/key pair. Valid scope/key pairs are a closed set (see the typed /api/v2/settings/{scope}/{key} endpoints for the documented pairs).
pub fn new(
scope: String,
key: String,
data: std::collections::HashMap<String, serde_json::Value>,
) -> Setting {
Setting { scope, key, data }
}
}