pub enum EitherCollisionStrategy {
    PreferA,
    PreferB,
    FastestSuccessful,
    ErrorA,
    ErrorB,
}
Expand description

Defines the result if neither or both of the extractors supplied to an Either<A,B> extractor succeed.

Variants

PreferA

If both are successful, return A, if both fail, return error of B

PreferB

If both are successful, return B, if both fail, return error of A

FastestSuccessful

Return result of the faster, error of the slower if both fail

ErrorA

Return error if both succeed, return error of A if both fail

ErrorB

Return error if both succeed, return error of B if both fail

Trait Implementations

Formats the value using the given formatter. Read more
Returns the “default value” for a type. 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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.