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