Struct zero_pass_backend::encrypt::PasswordBuilder
source · pub struct PasswordBuilder<U, V> { /* private fields */ }
Expand description
Definines the password builder that implements default values and can be cloned.
Implementations§
source§impl PasswordBuilder<NoUnique, NoVariable>
impl PasswordBuilder<NoUnique, NoVariable>
Implementation of PasswordBuilder when nothing is set yet.
source§impl<U, V> PasswordBuilder<U, V>
impl<U, V> PasswordBuilder<U, V>
Implementation of PasswordBuilder when it is already instantiated.
source§impl PasswordBuilder<Unique, Variable>
impl PasswordBuilder<Unique, Variable>
Implementation of PasswordBuilder when “unique” and “variable” fields are set.
sourcepub fn repeat(self, number: impl Into<u8>) -> Self
pub fn repeat(self, number: impl Into<u8>) -> Self
Sets a number of repetitions to use on the following specified method.
sourcepub async fn method<T: Method + Default + PartialEq + Clone>(
self,
method: T
) -> Result<Self>
pub async fn method<T: Method + Default + PartialEq + Clone>( self, method: T ) -> Result<Self>
Generates a password based on a method. Can be chained with multiple methods.
sourcepub async fn method_ptr(
self,
method: Arc<dyn Method + Sync + Send>
) -> Result<Self>
pub async fn method_ptr( self, method: Arc<dyn Method + Sync + Send> ) -> Result<Self>
Generates a password based on a method from a pointer. Can be chained with multiple methods.
pub fn build(self) -> String
Trait Implementations§
source§impl<U: Clone, V: Clone> Clone for PasswordBuilder<U, V>
impl<U: Clone, V: Clone> Clone for PasswordBuilder<U, V>
source§fn clone(&self) -> PasswordBuilder<U, V>
fn clone(&self) -> PasswordBuilder<U, V>
Returns a copy 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<U, V> Freeze for PasswordBuilder<U, V>
impl<U, V> RefUnwindSafe for PasswordBuilder<U, V>where
U: RefUnwindSafe,
V: RefUnwindSafe,
impl<U, V> Send for PasswordBuilder<U, V>
impl<U, V> Sync for PasswordBuilder<U, V>
impl<U, V> Unpin for PasswordBuilder<U, V>
impl<U, V> UnwindSafe for PasswordBuilder<U, V>where
U: UnwindSafe,
V: UnwindSafe,
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