Struct tinyhttp_internal::codegen::route::GetRouteWithReqAndRes
source · pub struct GetRouteWithReqAndRes { /* private fields */ }
Implementations§
source§impl GetRouteWithReqAndRes
impl GetRouteWithReqAndRes
pub fn new() -> GetRouteWithReqAndRes
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) -> Response) -> Self
pub fn get_body(&self) -> Option<fn(_: Request) -> Response>
Trait Implementations§
source§impl Clone for GetRouteWithReqAndRes
impl Clone for GetRouteWithReqAndRes
source§fn clone(&self) -> GetRouteWithReqAndRes
fn clone(&self) -> GetRouteWithReqAndRes
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 more