Struct password_hash::SaltString [−][src]
pub struct SaltString { /* fields omitted */ }
Expand description
Owned stack-allocated equivalent of Salt
.
Implementations
Generate a random B64-encoded SaltString
.
Create a new SaltString
.
Encode the given byte slice as B64 into a new SaltString
.
Returns None
if the slice is too long.
Decode this SaltString
from B64 into the provided output buffer.
Borrow the contents of a SaltString
as a Salt
.
Borrow the contents of a SaltString
as a str
.
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for SaltString
impl Send for SaltString
impl Sync for SaltString
impl Unpin for SaltString
impl UnwindSafe for SaltString
Blanket Implementations
Mutably borrows from an owned value. Read more