/*
* TheHive API
*
* Comprehensive OpenAPI specification inferred from the TheHive4py client library. This API allows interaction with TheHive platform for managing alerts, cases, observables, tasks, users, and other entities.
*
* The version of the OpenAPI document: 2.1.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct InputProfile {
#[serde(rename = "name")]
pub name: String,
#[serde(rename = "permissions", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub permissions: Option<Option<Vec<String>>>,
}
impl InputProfile {
pub fn new(name: String) -> InputProfile {
InputProfile {
name,
permissions: None,
}
}
}