pub struct PasswordAuth { /* private fields */ }Expand description
Authenticates with a fixed username and password via NifiClient::login.
Useful for tests or simple deployments where credentials are known at
build time. The password is stored in a zeroize::Zeroizing wrapper
so it is zeroed on drop.
Implementations§
Trait Implementations§
Source§impl AuthProvider for PasswordAuth
impl AuthProvider for PasswordAuth
Source§impl Clone for PasswordAuth
impl Clone for PasswordAuth
Source§fn clone(&self) -> PasswordAuth
fn clone(&self) -> PasswordAuth
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 PasswordAuth
impl RefUnwindSafe for PasswordAuth
impl Send for PasswordAuth
impl Sync for PasswordAuth
impl Unpin for PasswordAuth
impl UnsafeUnpin for PasswordAuth
impl UnwindSafe for PasswordAuth
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