pub struct KeyConfig {
pub entropy_bytes: usize,
pub include_checksum: bool,
pub hash_config: HashConfig,
pub separator: Separator,
}Fields§
§entropy_bytes: usize§include_checksum: bool§hash_config: HashConfig§separator: SeparatorImplementations§
Source§impl KeyConfig
impl KeyConfig
pub fn new() -> Self
pub fn with_entropy(self, bytes: usize) -> Result<Self>
pub fn with_checksum(self, include: bool) -> Self
pub fn with_hash_config(self, hash_config: HashConfig) -> Self
pub fn with_separator(self, separator: Separator) -> Self
pub fn balanced() -> Self
pub fn high_security() -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KeyConfig
impl RefUnwindSafe for KeyConfig
impl Send for KeyConfig
impl Sync for KeyConfig
impl Unpin for KeyConfig
impl UnwindSafe for KeyConfig
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