Trait gotham::router::request::path::FromRequestPath [] [src]

pub trait FromRequestPath {
    fn from_request_path(
        _: &[&PercentDecoded]
    ) -> Result<Self, FromRequestPathError>
    where
        Self: Sized
; }

Converts string data received as part of a Request path to type safe values for usage by Middleware and Handlers.

Required Methods

Converts a 1..n Request path segments into type safe values.

Panic

If the input data is not of the expected format or size a panic will occur.

e.g. Multiple segments due to usage of a Glob are provided for a value that should only be generated from a single segment, such as a u8.

Implementors