pub struct Api {
pub version: Option<Version>,
pub prefix: Option<String>,
pub handlers: ApiHandlers,
// some fields omitted
}
Fields
version: Option<Version>
prefix: Option<String>
handlers: ApiHandlers
Methods
Trait Implementations
fn namespace<F>(&mut self, path: &str, builder: F) where F: FnOnce(&mut Namespace)
fn group<F>(&mut self, path: &str, builder: F) where F: FnOnce(&mut Namespace)
fn resource<F>(&mut self, path: &str, builder: F) where F: FnOnce(&mut Namespace)
fn resources<F>(&mut self, path: &str, builder: F) where F: FnOnce(&mut Namespace)
fn segment<F>(&mut self, path: &str, builder: F) where F: FnOnce(&mut Namespace)