Struct rustis::commands::AclGenPassOptions
source · pub struct AclGenPassOptions { /* private fields */ }
Expand description
Options for the acl_genpass
command
Implementations§
source§impl AclGenPassOptions
impl AclGenPassOptions
sourcepub fn bits(self, bits: usize) -> Self
pub fn bits(self, bits: usize) -> Self
The command output is a hexadecimal representation of a binary string. By default it emits 256 bits (so 64 hex characters). The user can provide an argument in form of number of bits to emit from 1 to 1024 to change the output length. Note that the number of bits provided is always rounded to the next multiple of 4. So for instance asking for just 1 bit password will result in 4 bits to be emitted, in the form of a single hex character.
Trait Implementations§
source§impl Default for AclGenPassOptions
impl Default for AclGenPassOptions
source§fn default() -> AclGenPassOptions
fn default() -> AclGenPassOptions
Returns the “default value” for a type. Read more
source§impl ToArgs for AclGenPassOptions
impl ToArgs for AclGenPassOptions
source§fn write_args(&self, args: &mut CommandArgs)
fn write_args(&self, args: &mut CommandArgs)
Write this Rust type as one ore multiple args into CommandArgs. Read more
Auto Trait Implementations§
impl Freeze for AclGenPassOptions
impl RefUnwindSafe for AclGenPassOptions
impl Send for AclGenPassOptions
impl Sync for AclGenPassOptions
impl Unpin for AclGenPassOptions
impl UnwindSafe for AclGenPassOptions
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