Struct kanidmd_lib::identity::Identity
source · [−]pub struct Identity {
pub origin: IdentType,
/* private fields */
}
Expand description
An identity that initiated an Event
. Contains extra details about the session
and other info that can assist with server decision making.
Fields
origin: IdentType
Implementations
sourceimpl Identity
impl Identity
pub fn from_internal() -> Self
pub fn access_scope(&self) -> AccessScope
pub fn get_session_id(&self) -> Uuid
pub fn from_impersonate(ident: &Self) -> Self
pub fn is_internal(&self) -> bool
pub fn get_uuid(&self) -> Option<Uuid>
pub fn get_event_origin_id(&self) -> IdentityId
pub fn is_memberof(&self, group: Uuid) -> bool
pub fn get_oauth2_consent_scopes(
&self,
oauth2_rs: Uuid
) -> Option<&BTreeSet<String>>
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Identity
impl Send for Identity
impl Sync for Identity
impl Unpin for Identity
impl !UnwindSafe for Identity
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more