pub struct SamUserEntry {
pub username: String,
pub rid: u32,
pub last_login: Option<String>,
pub password_last_set: Option<String>,
pub account_expires: Option<String>,
pub login_count: u16,
pub account_flags: u32,
pub is_disabled: bool,
pub is_locked: bool,
}Expand description
Information about a local user account from the SAM hive.
Fields§
§username: StringAccount username.
rid: u32Relative Identifier (RID), e.g. 500 for Administrator.
last_login: Option<String>Last login timestamp (ISO 8601), from F record bytes 8-15 (FILETIME).
password_last_set: Option<String>Password last set timestamp (ISO 8601), from F record bytes 16-23.
account_expires: Option<String>Account expiry timestamp (ISO 8601), from F record bytes 24-31. None = never.
login_count: u16Login count, from F record bytes 66-67 (u16 LE).
account_flags: u32Account control flags, from F record bytes 56-59 (u32 LE).
is_disabled: boolWhether the account is disabled (account_flags & 0x0001).
is_locked: boolWhether the account is locked (account_flags & 0x0010).
Trait Implementations§
Source§impl Clone for SamUserEntry
impl Clone for SamUserEntry
Source§fn clone(&self) -> SamUserEntry
fn clone(&self) -> SamUserEntry
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 SamUserEntry
impl Debug for SamUserEntry
Auto Trait Implementations§
impl Freeze for SamUserEntry
impl RefUnwindSafe for SamUserEntry
impl Send for SamUserEntry
impl Sync for SamUserEntry
impl Unpin for SamUserEntry
impl UnsafeUnpin for SamUserEntry
impl UnwindSafe for SamUserEntry
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