/*
* Manager API
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.0-dev
* Contact: support@babelforce.com
* Generated by: https://openapi-generator.tech
*/
use crate::gen::manager::models;
use serde::{Deserialize, Serialize};
/// EmailRoleBinding : The users (by email) and the roles to assign to or remove from them.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct EmailRoleBinding {
/// The email addresses of the users to act on.
#[serde(rename = "emails", skip_serializing_if = "Option::is_none")]
pub emails: Option<Vec<String>>,
/// A List of Roles which are associated with the current User
#[serde(rename = "roles", skip_serializing_if = "Option::is_none")]
pub roles: Option<Vec<models::AccountRole>>,
}
impl EmailRoleBinding {
/// The users (by email) and the roles to assign to or remove from them.
pub fn new() -> EmailRoleBinding {
EmailRoleBinding {
emails: None,
roles: None,
}
}
}