Trait medal::webfw_iron::RequestRouterParam

source ·
trait RequestRouterParam {
    // Required methods
    fn get_str(&mut self, key: &str) -> Option<String>;
    fn get_int<T: FromStr>(&mut self, key: &str) -> Option<T>;
    fn expect_int<T: FromStr>(&mut self, key: &str) -> IronResult<T>;
    fn expect_str(&mut self, key: &str) -> IronResult<String>;
}

Required Methods§

source

fn get_str(&mut self, key: &str) -> Option<String>

source

fn get_int<T: FromStr>(&mut self, key: &str) -> Option<T>

source

fn expect_int<T: FromStr>(&mut self, key: &str) -> IronResult<T>

source

fn expect_str(&mut self, key: &str) -> IronResult<String>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'a, 'b> RequestRouterParam for Request<'a, 'b>

source§

fn get_str(&mut self, key: &str) -> Option<String>

source§

fn get_int<T: FromStr>(&mut self, key: &str) -> Option<T>

source§

fn expect_int<T: FromStr>(&mut self, key: &str) -> IronResult<T>

source§

fn expect_str(&mut self, key: &str) -> IronResult<String>

Implementors§