Struct redis_driver::AclGenPassOptions
source · [−]pub struct AclGenPassOptions { /* private fields */ }
Expand description
Options for the acl_genpass
command
Implementations
sourceimpl 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
sourceimpl Default for AclGenPassOptions
impl Default for AclGenPassOptions
sourcefn default() -> AclGenPassOptions
fn default() -> AclGenPassOptions
Returns the “default value” for a type. Read more
sourceimpl IntoArgs for AclGenPassOptions
impl IntoArgs for AclGenPassOptions
fn into_args(self, args: CommandArgs) -> CommandArgs
fn num_args(&self) -> usize
Auto Trait Implementations
impl RefUnwindSafe for AclGenPassOptions
impl Send for AclGenPassOptions
impl Sync for AclGenPassOptions
impl Unpin for AclGenPassOptions
impl UnwindSafe for AclGenPassOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more