pub struct Credential {
pub target: String,
pub username: String,
pub secret: String,
pub last_written: u64,
}Expand description
A decoded Credential Manager entry (impacket CREDENTIAL_BLOB).
secret is impacket’s Unknown field — the stored credential material
(typically the password) for the target. Strings are UTF-16LE-decoded.
Fields§
§target: StringThe credential target (impacket Target), e.g. Domain:target=....
username: StringThe account username (impacket Username).
secret: StringThe stored secret / password (impacket Unknown).
last_written: u64FILETIME of last write (impacket LastWritten).
Trait Implementations§
Source§impl Clone for Credential
impl Clone for Credential
Source§fn clone(&self) -> Credential
fn clone(&self) -> Credential
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 Credential
impl Debug for Credential
impl Eq for Credential
Source§impl PartialEq for Credential
impl PartialEq for Credential
Source§fn eq(&self, other: &Credential) -> bool
fn eq(&self, other: &Credential) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Credential
Auto Trait Implementations§
impl Freeze for Credential
impl RefUnwindSafe for Credential
impl Send for Credential
impl Sync for Credential
impl Unpin for Credential
impl UnsafeUnpin for Credential
impl UnwindSafe for Credential
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