/*
* 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};
/// NewFact : A fact is a piece of auxiliary information that can be used as part of an authorization policy. They are usually expressed as a statement such as has_role(principal, role_name)
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct NewFact {
#[serde(rename = "arguments")]
pub arguments: Vec<String>,
}
impl NewFact {
/// A fact is a piece of auxiliary information that can be used as part of an authorization policy. They are usually expressed as a statement such as has_role(principal, role_name)
pub fn new(arguments: Vec<String>) -> NewFact {
NewFact {
arguments,
}
}
}