pub struct BasicGetRoute { /* private fields */ }
Implementations§
Source§impl BasicGetRoute
impl BasicGetRoute
pub fn new() -> BasicGetRoute
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_is_args(self, is_args: bool) -> Self
pub fn set_body(self, body: fn() -> Response) -> Self
pub fn set_body_with(self, body: fn(Request) -> Vec<u8>) -> Self
pub fn set_body_with_res(self, body: fn(Request) -> Response) -> Self
pub fn set_is_ret_res(self, is_ret_res: bool) -> Self
Trait Implementations§
Source§impl Clone for BasicGetRoute
impl Clone for BasicGetRoute
Source§fn clone(&self) -> BasicGetRoute
fn clone(&self) -> BasicGetRoute
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 BasicGetRoute
impl Debug for BasicGetRoute
Source§impl Default for BasicGetRoute
impl Default for BasicGetRoute
Source§impl Route for BasicGetRoute
impl Route for BasicGetRoute
Source§impl ToResponse for BasicGetRoute
impl ToResponse for BasicGetRoute
Auto Trait Implementations§
impl Freeze for BasicGetRoute
impl RefUnwindSafe for BasicGetRoute
impl Send for BasicGetRoute
impl Sync for BasicGetRoute
impl Unpin for BasicGetRoute
impl UnwindSafe for BasicGetRoute
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