[][src]Trait gotham_restful::DrawResources

pub trait DrawResources {
    fn resource<R: Resource, T: ToString>(&mut self, path: T);
}

This trait adds the resource method to gotham's routing. It allows you to register any RESTful Resource with a path.

Required methods

fn resource<R: Resource, T: ToString>(&mut self, path: T)

Loading content...

Implementations on Foreign Types

impl<'a, C, P> DrawResources for RouterBuilder<'a, C, P> where
    C: PipelineHandleChain<P> + Copy + Send + Sync + 'static,
    P: RefUnwindSafe + Send + Sync + 'static, 
[src]

impl<'a, C, P> DrawResources for ScopeBuilder<'a, C, P> where
    C: PipelineHandleChain<P> + Copy + Send + Sync + 'static,
    P: RefUnwindSafe + Send + Sync + 'static, 
[src]

Loading content...

Implementors

Loading content...