pub struct Role {
pub id: Option<String>,
pub name: Option<String>,
pub display_name: Option<String>,
pub description: Option<String>,
pub permissions: Option<Vec<String>>,
pub scheme_managed: Option<bool>,
}Fields§
§id: Option<String>The unique identifier of the role.
name: Option<String>The unique name of the role, used when assigning roles to users/groups in contexts.
display_name: Option<String>The human readable name for the role.
description: Option<String>A human readable description of the role.
permissions: Option<Vec<String>>A list of the unique names of the permissions this role grants.
scheme_managed: Option<bool>indicates if this role is managed by a scheme (true), or is a custom stand-alone role (false).
Implementations§
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
impl StructuralPartialEq for Role
Auto Trait Implementations§
impl Freeze for Role
impl RefUnwindSafe for Role
impl Send for Role
impl Sync for Role
impl Unpin for Role
impl UnsafeUnpin 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