/*
* Antimatter Public API
*
* Interact with the Antimatter Cloud API
*
* The version of the OpenAPI document: 2.0.13
* Contact: support@antimatter.io
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// ReadContextParameter : Declare parameters that can be passed in for use in read context configuration rules. It is expected that these are used for distinguishing who a read is being done on behalf of, and important attributes about that user (team, project, org etc).
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ReadContextParameter {
#[serde(rename = "key", skip_serializing_if = "Option::is_none")]
pub key: Option<String>,
#[serde(rename = "required", skip_serializing_if = "Option::is_none")]
pub required: Option<bool>,
#[serde(rename = "description", skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
}
impl ReadContextParameter {
/// Declare parameters that can be passed in for use in read context configuration rules. It is expected that these are used for distinguishing who a read is being done on behalf of, and important attributes about that user (team, project, org etc).
pub fn new() -> ReadContextParameter {
ReadContextParameter {
key: None,
required: None,
description: None,
}
}
}