pub struct Role {
pub id: Uuid,
pub key: String,
pub name: String,
pub description: Option<String>,
pub level: i64,
pub is_default: bool,
pub permission_ids: Vec<Uuid>,
pub created_at: OffsetDateTime,
}Expand description
A Frontegg role.
Fields§
§id: UuidThe ID of the role.
key: StringThe machine-readable name for the role.
name: StringThe human-readable name for the role.
description: Option<String>A description of the role.
level: i64The level of the role.
is_default: boolWhether the role is a default role assigned to new users.
permission_ids: Vec<Uuid>The IDs of the permissions granted by the role.
created_at: OffsetDateTimeThe time at which the role was created.
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
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