pub struct Role {Show 15 fields
pub odata_context: Option<Context>,
pub odata_etag: Option<Etag>,
pub odata_id: Id,
pub odata_type: Type,
pub actions: Option<Actions>,
pub alternate_role_id: Option<String>,
pub assigned_privileges: Option<Vec<PrivilegeType>>,
pub description: Option<Description>,
pub id: Id,
pub is_predefined: Option<bool>,
pub name: Name,
pub oem: Option<Oem>,
pub oem_privileges: Option<Vec<String>>,
pub restricted: Option<bool>,
pub role_id: Option<String>,
}
Expand description
The Role schema contains a Redfish role to use in conjunction with a manager account.
Fields§
§odata_context: Option<Context>
§odata_etag: Option<Etag>
§odata_id: Id
§odata_type: Type
§actions: Option<Actions>
§alternate_role_id: Option<String>
An equivalent role to use when this role is restricted.
assigned_privileges: Option<Vec<PrivilegeType>>
The Redfish privileges for this role.
description: Option<Description>
§id: Id
§is_predefined: Option<bool>
An indication of whether the role is predefined by Redfish or an OEM rather than a client-defined role.
name: Name
§oem: Option<Oem>
§oem_privileges: Option<Vec<String>>
The OEM privileges for this role.
restricted: Option<bool>
An indication of whether use of the role is restricted.
role_id: Option<String>
The name of the role.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Role
impl<'de> Deserialize<'de> for Role
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Metadata<'static> for Role
impl Metadata<'static> for Role
Source§const JSON_SCHEMA: &'static str = "Role.v1_3_1.json"
const JSON_SCHEMA: &'static str = "Role.v1_3_1.json"
Name of the json-schema file that describes the entity that implements this trait. Should
be only the file name, so that it can be resolved relative to the URL of the redfish
service, or the public Redfish schema index.
Auto Trait Implementations§
impl Freeze for Role
impl RefUnwindSafe for Role
impl Send for Role
impl Sync for Role
impl Unpin for Role
impl UnwindSafe for Role
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more