pub struct Identity {
pub principal: Option<String>,
pub roles: Vec<String>,
pub permissions: Permissions,
pub auth_method: AuthMethod,
}Expand description
Resolved identity block — the post-auth view that crosses the WIT ABI.
Fields§
§principal: Option<String>Authenticated principal (username / email / service id); None if anonymous.
roles: Vec<String>Resolved role names.
permissions: PermissionsResolved permission bundle (super_user bit + per-resource op masks).
auth_method: AuthMethodAuthentication method that produced this identity.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Identity
impl RefUnwindSafe for Identity
impl Send for Identity
impl Sync for Identity
impl Unpin for Identity
impl UnsafeUnpin for Identity
impl UnwindSafe for Identity
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