Struct harsh::HarshBuilder [−][src]
pub struct HarshBuilder { /* fields omitted */ }
Expand description
A builder used to configure and create a Harsh instance.
Implementations
Creates a new HarshBuilder
instance.
Provides a salt.
Note that this salt will be converted into a [u8]
before use, meaning
that multi-byte utf8 character values should be avoided.
Provides an alphabet.
Note that this alphabet will be converted into a [u8]
before use, meaning
that multi-byte utf8 character values should be avoided. The alphabet must
include at least sixteen characters.
Provides a set of separators.
Note that these separators will be converted into a [u8]
before use,
meaning that multi-byte utf8 character values should be avoided.
Provides a minimum hash length.
Keep in mind that hashes produced may be longer than this length.
Initializes a new Harsh
based on the HarshBuilder
.
This method will consume the HarshBuilder
.
Trait Implementations
Returns the “default value” for a type. Read more