/*
* 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};
/// Capability : A capability is attached to authenticated domain identities by an identity provider, and confers additional permissions upon the identity. This is done by writing domain policy rules that reference the capability.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Capability {
/// An identifier for a capability
#[serde(rename = "name")]
pub name: String,
#[serde(rename = "value", skip_serializing_if = "Option::is_none")]
pub value: Option<String>,
}
impl Capability {
/// A capability is attached to authenticated domain identities by an identity provider, and confers additional permissions upon the identity. This is done by writing domain policy rules that reference the capability.
pub fn new(name: String) -> Capability {
Capability {
name,
value: None,
}
}
}