pub struct UserIdentity {
pub profile: Option<String>,
pub sid: Option<String>,
}Expand description
Identity of the user a per-user CatalogHit is attributed to.
Offline, a per-user artifact lives in one user’s NTUSER.DAT / UsrClass.dat.
At least one of profile / sid is populated; both may be present when the
caller could resolve the SID (e.g. from ProfileList or the hive path).
Fields§
§profile: Option<String>Profile/account name, typically the profile directory name (e.g. "alice").
sid: Option<String>Security identifier (e.g. "S-1-5-21-…-1001") when known.
Trait Implementations§
Source§impl Clone for UserIdentity
impl Clone for UserIdentity
Source§fn clone(&self) -> UserIdentity
fn clone(&self) -> UserIdentity
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 moreSource§impl Debug for UserIdentity
impl Debug for UserIdentity
impl Eq for UserIdentity
Source§impl PartialEq for UserIdentity
impl PartialEq for UserIdentity
Source§fn eq(&self, other: &UserIdentity) -> bool
fn eq(&self, other: &UserIdentity) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for UserIdentity
impl Serialize for UserIdentity
impl StructuralPartialEq for UserIdentity
Auto Trait Implementations§
impl Freeze for UserIdentity
impl RefUnwindSafe for UserIdentity
impl Send for UserIdentity
impl Sync for UserIdentity
impl Unpin for UserIdentity
impl UnsafeUnpin for UserIdentity
impl UnwindSafe for UserIdentity
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