Struct mz_frontegg_client::client::role::Role
source · pub struct Role {
pub id: Uuid,
pub vendor_id: String,
pub tenant_id: Option<String>,
pub key: String,
pub name: String,
pub description: String,
pub is_default: bool,
pub first_user_role: bool,
pub created_at: String,
pub updated_at: String,
pub permissions: Vec<String>,
pub level: i32,
}
Expand description
Role
represents the Frontegg role structure.
Fields§
§id: Uuid
A unique identifier for the role.
vendor_id: String
The identifier of the vendor associated with the role.
tenant_id: Option<String>
The optional identifier of the tenant associated with the role.
key: String
A unique key associated with the role.
name: String
The name of the role.
description: String
A description of the role.
is_default: bool
A boolean indicating whether this role is a default one.
first_user_role: bool
A boolean indicating whether this role was the first one assigned to a user.
created_at: String
A string representing the date and time in ISO 8601 when the role was created.
E.g.: 2023-04-26T08:37:03.000Z
updated_at: String
A string representing the date and time in ISO 8601 when the role was last updated.
E.g.: 2023-04-26T08:37:03.000Z
permissions: Vec<String>
A vector of strings representing the permissions associated with the role.
level: i32
An integer representing the level 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>,
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
source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request
source§impl<T, U> OverrideFrom<Option<&T>> for Uwhere
U: OverrideFrom<T>,
impl<T, U> OverrideFrom<Option<&T>> for Uwhere
U: OverrideFrom<T>,
source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
source§fn into_rust(self) -> Result<R, TryFromProtoError>
fn into_rust(self) -> Result<R, TryFromProtoError>
RustType::from_proto
.source§fn from_rust(rust: &R) -> P
fn from_rust(rust: &R) -> P
RustType::into_proto
.source§impl<'a, S, T> Semigroup<&'a S> for Twhere
T: Semigroup<S>,
impl<'a, S, T> Semigroup<&'a S> for Twhere
T: Semigroup<S>,
source§fn plus_equals(&mut self, rhs: &&'a S)
fn plus_equals(&mut self, rhs: &&'a S)
std::ops::AddAssign
, for types that do not implement AddAssign
.