Trait DrawResourcesWithSchema

Source
pub trait DrawResourcesWithSchema {
    // Required method
    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.

Required Methods§

Source

fn resource<R: ResourceWithSchema>(&mut self, path: &str)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§