pub struct Identity {
pub member: String,
pub delegated_by: Option<String>,
pub authenticated: bool,
}Expand description
The resolved identity of the acting user.
Fields§
§member: StringThe member ID (email or ai:tool@joy).
delegated_by: Option<String>If the member is an AI, the human who delegated the action.
authenticated: boolWhether this identity was cryptographically authenticated (session or token).
Implementations§
Trait Implementations§
impl StructuralPartialEq for Identity
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