pub struct Route {
pub method: Option<String>,
pub path: String,
pub status: u16,
pub body: Value,
pub content_type: Option<String>,
}Expand description
Static route: first route whose method (if any) and path (query ignored) match answers.
Fields§
§method: Option<String>§path: String§status: u16§body: Value§content_type: Option<String>Trait Implementations§
Auto Trait Implementations§
impl Freeze for Route
impl RefUnwindSafe for Route
impl Send for Route
impl Sync for Route
impl Unpin for Route
impl UnsafeUnpin for Route
impl UnwindSafe 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