pub struct UserWithRolesResponse {
pub id: Uuid,
pub email: String,
pub first_name: String,
pub last_name: String,
pub is_active: bool,
pub roles: Vec<UserRoleSummary>,
pub permissions: Vec<Permission>,
}Expand description
A user with their assigned roles and resolved permissions.
Fields§
§id: Uuid§email: String§first_name: String§last_name: String§is_active: bool§roles: Vec<UserRoleSummary>§permissions: Vec<Permission>Trait Implementations§
Source§impl Clone for UserWithRolesResponse
impl Clone for UserWithRolesResponse
Source§fn clone(&self) -> UserWithRolesResponse
fn clone(&self) -> UserWithRolesResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for UserWithRolesResponse
impl<'de> Deserialize<'de> for UserWithRolesResponse
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 UserWithRolesResponse
impl RefUnwindSafe for UserWithRolesResponse
impl Send for UserWithRolesResponse
impl Sync for UserWithRolesResponse
impl Unpin for UserWithRolesResponse
impl UnsafeUnpin for UserWithRolesResponse
impl UnwindSafe for UserWithRolesResponse
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