pub struct UserInfoAndPermissions {
pub sub: String,
pub email: Option<String>,
pub email_verified: Option<bool>,
pub permissions: Vec<Permission<'static>>,
}Expand description
Returned by IamClient::check_user. Contains information describing the user as well as the
union of the queried permissions and the privileges of the user.
Fields§
§sub: StringUnique ID of the User
email: Option<String>Email of the user. None for Service users
email_verified: Option<bool>May be None for Service Users
permissions: Vec<Permission<'static>>List of requested permissions, which are privieleges of the User Service. They are in the same order as in the query
Trait Implementations§
Source§impl Debug for UserInfoAndPermissions
impl Debug for UserInfoAndPermissions
Source§impl<'de> Deserialize<'de> for UserInfoAndPermissions
impl<'de> Deserialize<'de> for UserInfoAndPermissions
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 UserInfoAndPermissions
impl PartialEq for UserInfoAndPermissions
Source§fn eq(&self, other: &UserInfoAndPermissions) -> bool
fn eq(&self, other: &UserInfoAndPermissions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for UserInfoAndPermissions
impl StructuralPartialEq for UserInfoAndPermissions
Auto Trait Implementations§
impl Freeze for UserInfoAndPermissions
impl RefUnwindSafe for UserInfoAndPermissions
impl Send for UserInfoAndPermissions
impl Sync for UserInfoAndPermissions
impl Unpin for UserInfoAndPermissions
impl UnsafeUnpin for UserInfoAndPermissions
impl UnwindSafe for UserInfoAndPermissions
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.