pub trait DrawResourcesWithSchema {
fn resource<R: ResourceWithSchema>(&mut self, path: &str);
}
Expand description
This trait adds the resource
method to gotham’s routing. It allows you to register
any RESTful Resource with a path.
pub trait DrawResourcesWithSchema {
fn resource<R: ResourceWithSchema>(&mut self, path: &str);
}
This trait adds the resource
method to gotham’s routing. It allows you to register
any RESTful Resource with a path.