Struct pwhash::bcrypt::BcryptSetup
[−]
[src]
pub struct BcryptSetup<'a> { pub salt: Option<&'a str>, pub cost: Option<u32>, pub variant: Option<BcryptVariant>, }
Setup struct for bcrypt.
In addition to custom salt and cost values, a bcrypt hash can use different algorithm variant identifiers.
Fields
salt: Option<&'a str>
Custom salt.
cost: Option<u32>
Custom cost.
variant: Option<BcryptVariant>
Algorithm variant.
Trait Implementations
impl<'a> IntoBcryptSetup<'a> for BcryptSetup<'a>
[src]
fn into_bcrypt_setup(self) -> Result<BcryptSetup<'a>>
[src]
The conversion function.