pub struct UserRoleAssignment {
pub object: String,
pub user: User,
pub role: Role,
}Expand description
Role assignment linking a user to a role.
Fields§
§object: StringThe object type, which is always user.role.
user: UserThe user.
role: RoleThe role.
Trait Implementations§
Source§impl Clone for UserRoleAssignment
impl Clone for UserRoleAssignment
Source§fn clone(&self) -> UserRoleAssignment
fn clone(&self) -> UserRoleAssignment
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 Debug for UserRoleAssignment
impl Debug for UserRoleAssignment
Source§impl<'de> Deserialize<'de> for UserRoleAssignment
impl<'de> Deserialize<'de> for UserRoleAssignment
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 PartialEq for UserRoleAssignment
impl PartialEq for UserRoleAssignment
Source§impl Serialize for UserRoleAssignment
impl Serialize for UserRoleAssignment
impl StructuralPartialEq for UserRoleAssignment
Auto Trait Implementations§
impl Freeze for UserRoleAssignment
impl RefUnwindSafe for UserRoleAssignment
impl Send for UserRoleAssignment
impl Sync for UserRoleAssignment
impl Unpin for UserRoleAssignment
impl UnwindSafe for UserRoleAssignment
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