pub struct MultipleMethod(_);
Expand description

Holds multiple methods to make callback management easier

Implementations

Turns the Method into a MethodHandler, which is a short for a tuple Method - Handler

let mul = Method::Put.and(Method::Post).and(Method::Patch);

Adds another method

// This first and belongs to the `Method` struct
let mul = Method::Put.and(Method::Post);
// This one to the `MultipleMethod` struct
let more_mul = mul.and(Method::Patch);

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

Returns the argument unchanged.

Calls U::from(self).

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

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.