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

Custom salt.

Custom cost.

Algorithm variant.

Trait Implementations

impl<'a> IntoBcryptSetup<'a> for BcryptSetup<'a>
[src]

[src]

The conversion function.

impl<'a> Default for BcryptSetup<'a>
[src]

[src]

Returns the "default value" for a type. Read more