pub struct Route {
pub verb: Verb,
pub route: String,
pub method: fn(_: &RequestHandler) -> HTTPResponse,
pub need_security: bool,
}
Fields§
§verb: Verb
§route: String
§method: fn(_: &RequestHandler) -> HTTPResponse
§need_security: bool
Implementations§
Trait Implementations§
impl Eq for Route
impl StructuralPartialEq for Route
Auto Trait Implementations§
impl Freeze for Route
impl RefUnwindSafe for Route
impl Send for Route
impl Sync for Route
impl Unpin 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