pub struct GetRouteWithReq { /* private fields */ }
Implementations§
Source§impl GetRouteWithReq
impl GetRouteWithReq
pub fn new() -> GetRouteWithReq
pub fn set_path(self, path: &'static str) -> Self
pub fn set_method(self, method: Method) -> Self
pub fn set_wildcard(self, wildcard: String) -> Self
pub fn set_body(self, body: fn(Request) -> Vec<u8>) -> Self
pub fn get_body(&self) -> Option<fn(Request) -> Vec<u8>>
Trait Implementations§
Source§impl Clone for GetRouteWithReq
impl Clone for GetRouteWithReq
Source§fn clone(&self) -> GetRouteWithReq
fn clone(&self) -> GetRouteWithReq
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for GetRouteWithReq
impl Debug for GetRouteWithReq
Source§impl Default for GetRouteWithReq
impl Default for GetRouteWithReq
Source§impl Route for GetRouteWithReq
impl Route for GetRouteWithReq
Source§impl ToResponse for GetRouteWithReq
impl ToResponse for GetRouteWithReq
Auto Trait Implementations§
impl Freeze for GetRouteWithReq
impl RefUnwindSafe for GetRouteWithReq
impl Send for GetRouteWithReq
impl Sync for GetRouteWithReq
impl Unpin for GetRouteWithReq
impl UnwindSafe for GetRouteWithReq
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