pub enum TargetHashInput<'a> {
    HashAsStr(&'a str),
    Plaintext(&'a str),
}
Expand description

Helper type to create instances of TargetHashAndHashFunction.

Variants

HashAsStr(&'a str)

The provided input is already a valid hash but as (hex) string representation.

Plaintext(&'a str)

The provided input is plain text and needs to be hashed by the constructor. This is useful for tests, examples, and debugging. For real applications you may want to use Self::HashAsStr.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.