antimatter_api 2.0.13

Interact with the Antimatter Cloud API
Documentation
/*
 * 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};

/// UpdatePrincipalParams : New principal settings to apply to principal.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct UpdatePrincipalParams {
    #[serde(rename = "capabilities")]
    pub capabilities: Vec<models::Capability>,
    /// A comment about the principal.
    #[serde(rename = "comment", skip_serializing_if = "Option::is_none")]
    pub comment: Option<String>,
}

impl UpdatePrincipalParams {
    /// New principal settings to apply to principal.
    pub fn new(capabilities: Vec<models::Capability>) -> UpdatePrincipalParams {
        UpdatePrincipalParams {
            capabilities,
            comment: None,
        }
    }
}