pub struct WinrmCredentials {
pub username: String,
pub password: SecretString,
pub domain: String,
}Expand description
Credentials for WinRM authentication.
The password is stored as a SecretString — zeroized on drop and
redacted in Debug output. Use WinrmCredentials::new to construct.
For NTLM, if domain is empty the client will use the
domain advertised by the server in its Type 2 challenge message.
Fields§
§username: StringWindows account name (e.g. "administrator").
password: SecretStringPassword — stored as SecretString, zeroized on drop, redacted in Debug.
domain: StringOptional NetBIOS domain. Leave empty to auto-detect from the NTLM challenge.
Implementations§
Trait Implementations§
Source§impl Clone for WinrmCredentials
impl Clone for WinrmCredentials
Source§fn clone(&self) -> WinrmCredentials
fn clone(&self) -> WinrmCredentials
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for WinrmCredentials
impl RefUnwindSafe for WinrmCredentials
impl Send for WinrmCredentials
impl Sync for WinrmCredentials
impl Unpin for WinrmCredentials
impl UnsafeUnpin for WinrmCredentials
impl UnwindSafe for WinrmCredentials
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