Struct tsukuyomi::app::builder::Route   [−][src]
pub struct Route<'a> { /* fields omitted */ }A proxy object for creating an endpoint.
Methods
impl<'a> Route<'a>[src] 
impl<'a> Route<'a>ⓘImportant traits for &'a mut Rpub fn method<M>(&mut self, method: M) -> &mut Self where
    Method: HttpTryFrom<M>,
    <Method as HttpTryFrom<M>>::Error: Fail, [src] 
ⓘImportant traits for &'a mut R
pub fn method<M>(&mut self, method: M) -> &mut Self where
    Method: HttpTryFrom<M>,
    <Method as HttpTryFrom<M>>::Error: Fail, Modifies the HTTP method of this route.
ⓘImportant traits for &'a mut Rpub fn uri(&mut self, uri: &str) -> &mut Self[src] 
ⓘImportant traits for &'a mut R
pub fn uri(&mut self, uri: &str) -> &mut SelfModifies the URI of this route.
ⓘImportant traits for &'a mut Rpub fn modifier(
    &mut self, 
    modifier: impl Modifier + Send + Sync + 'static
) -> &mut Self[src] 
ⓘImportant traits for &'a mut R
pub fn modifier(
    &mut self, 
    modifier: impl Modifier + Send + Sync + 'static
) -> &mut SelfRegister a Modifier to this route.
ⓘImportant traits for &'a mut Rpub fn handler(
    &mut self, 
    handler: impl Handler + Send + Sync + 'static
) -> &mut Self[src] 
ⓘImportant traits for &'a mut R
pub fn handler(
    &mut self, 
    handler: impl Handler + Send + Sync + 'static
) -> &mut SelfSets a Handler to this route.