pub struct CurrentUser {
pub id: String,
pub issuer: Option<String>,
pub email: String,
pub scopes: Vec<String>,
pub firm_id: Option<String>,
pub auth_user_id: Option<String>,
pub session_id: Option<String>,
pub app: Option<String>,
pub token_version: i64,
pub permissions_version: i64,
pub is_system_admin: bool,
pub identity_class: Option<String>,
}Expand description
Verified identity from an access token.
id is the token’s sub — a pairwise sector subject for clients on
the RFC 9068 profile (WP-03b), not the account’s global users.id. Never
use it to correlate identities across clients; auth_user_id (present
only under the legacy_global_id compat adapter) is the legacy global
shape, and central_identity_id() keeps answering it for compat.
Fields§
§id: String§issuer: Option<String>The verified token’s issuer: the allow-listed issuer that signed it.
email: String§scopes: Vec<String>§firm_id: Option<String>§auth_user_id: Option<String>§session_id: Option<String>§app: Option<String>§token_version: i64§permissions_version: i64§is_system_admin: bool§identity_class: Option<String>Implementations§
Trait Implementations§
Source§impl Clone for CurrentUser
impl Clone for CurrentUser
Source§fn clone(&self) -> CurrentUser
fn clone(&self) -> CurrentUser
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CurrentUser
impl RefUnwindSafe for CurrentUser
impl Send for CurrentUser
impl Sync for CurrentUser
impl Unpin for CurrentUser
impl UnsafeUnpin for CurrentUser
impl UnwindSafe for CurrentUser
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