1
0
Fork 0
mirror of https://gitlab.com/msrd0/gotham-restful.git synced 2025-05-09 16:10:42 +00:00

docs: use [Type] syntax from rust 1.48

This commit is contained in:
Dominic 2020-11-22 23:55:52 +01:00
parent ed1bbbd1fb
commit 4ae860dd32
Signed by: msrd0
GPG key ID: DCC8C247452E98F9
11 changed files with 71 additions and 70 deletions

View file

@ -44,13 +44,13 @@ pub trait WithOpenapi<D> {
}
/// This trait adds the `resource` method to gotham's routing. It allows you to register
/// any RESTful `Resource` with a path.
/// any RESTful [Resource] with a path.
pub trait DrawResources {
fn resource<R: Resource>(&mut self, path: &str);
}
/// This trait allows to draw routes within an resource. Use this only inside the
/// `Resource::setup` method.
/// [Resource::setup] method.
pub trait DrawResourceRoutes {
fn read_all<Handler: ResourceReadAll>(&mut self);