pub struct CreateRole {Show 16 fields
pub analytics_access: Option<String>,
pub audit_access: Option<String>,
pub comment: Option<String>,
pub delete_protection: Option<String>,
pub description: Option<String>,
pub event_center_access: Option<String>,
pub event_forwarders_access: Option<String>,
pub event_forwarders_name: Option<Vec<String>>,
pub gw_analytics_access: Option<String>,
pub json: Option<bool>,
pub name: String,
pub reverse_rbac_access: Option<String>,
pub sra_reports_access: Option<String>,
pub token: Option<String>,
pub uid_token: Option<String>,
pub usage_reports_access: Option<String>,
}Fields§
§analytics_access: Option<String>Allow this role to view analytics. Currently only ‘none’, ‘own’, ‘all’ values are supported, allowing associated auth methods to view reports produced by the same auth methods.
audit_access: Option<String>Allow this role to view audit logs. Currently only ‘none’, ‘own’, ‘scoped’ and ‘all’ values are supported, allowing associated auth methods to view audit logs produced by the same auth methods.
comment: Option<String>Deprecated - use description
delete_protection: Option<String>Protection from accidental deletion of this object [true/false]
description: Option<String>Description of the object
event_center_access: Option<String>Allow this role to view Event Center. Currently only ‘none’, ‘scoped’ and ‘all’ values are supported
event_forwarders_access: Option<String>Allow this role to manage Event Forwarders. Currently only ‘none’ and ‘all’ values are supported.
event_forwarders_name: Option<Vec<String>>Allow this role to manage the following Event Forwarders.
gw_analytics_access: Option<String>Allow this role to view gw analytics. Currently only ‘none’, ‘scoped’, ‘all’ values are supported, allowing associated auth methods to view reports produced by the same auth methods.
json: Option<bool>Set output format to JSON
name: StringRole name
reverse_rbac_access: Option<String>Allow this role to view Reverse RBAC. Supported values: ‘scoped’, ‘all’.
sra_reports_access: Option<String>Allow this role to view SRA Clusters. Currently only ‘none’, ‘scoped’, ‘all’ values are supported.
token: Option<String>Authentication token (see /auth and /configure)
uid_token: Option<String>The universal identity token, Required only for universal_identity authentication
usage_reports_access: Option<String>Allow this role to view Usage Report. Currently only ‘none’ and ‘all’ values are supported.
Implementations§
Source§impl CreateRole
impl CreateRole
pub fn new(name: String) -> CreateRole
Trait Implementations§
Source§impl Clone for CreateRole
impl Clone for CreateRole
Source§fn clone(&self) -> CreateRole
fn clone(&self) -> CreateRole
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CreateRole
impl Debug for CreateRole
Source§impl Default for CreateRole
impl Default for CreateRole
Source§fn default() -> CreateRole
fn default() -> CreateRole
Source§impl<'de> Deserialize<'de> for CreateRole
impl<'de> Deserialize<'de> for CreateRole
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for CreateRole
impl PartialEq for CreateRole
Source§fn eq(&self, other: &CreateRole) -> bool
fn eq(&self, other: &CreateRole) -> bool
self and other values to be equal, and is used by ==.