pub struct Route {
pub method: Method,
pub pattern: String,
pub name: Option<String>,
pub summary: Option<String>,
pub tag: Option<String>,
pub responses: Vec<(u16, String)>,
pub parameters: Vec<(String, String)>,
pub deprecated: bool,
/* private fields */
}Fields§
§method: Method§pattern: StringThe pattern as written, used for route:list and metrics labels.
name: Option<String>§summary: Option<String>What this route does, in one line. Feeds generated API documentation.
tag: Option<String>A grouping label, so generated docs are not one flat list.
responses: Vec<(u16, String)>Documented responses: status, and what it means.
parameters: Vec<(String, String)>Documented parameters: name, and what it is.
deprecated: boolImplementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Route
impl !UnwindSafe for Route
impl Freeze for Route
impl Send for Route
impl Sync for Route
impl Unpin for Route
impl UnsafeUnpin for Route
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more