pub struct Route { /* private fields */ }

Implementations§

Trait Implementations§

Function ‘all’ will match the uri on all request methods. Note that the “match all” paradigm is used in this framework as a safe fallback, which means that if a different callback has been defined for the same uri but under a explicitly defined request method (e.g. get, post, etc.), it will be matched and invoked instead of the “match all” callback functions.

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.