pub struct RequestMeta {
pub method: Method,
pub path: String,
pub path_params: HashMap<String, String>,
pub ip: IpAddr,
}Expand description
Metadata about the incoming HTTP request, available to all matchers.
Fields§
§method: MethodHTTP method (GET, POST, etc.)
path: StringRequest path.
path_params: HashMap<String, String>Named path parameters extracted from the matching EndpointPattern.
ip: IpAddrClient IP address.
Trait Implementations§
Source§impl Clone for RequestMeta
impl Clone for RequestMeta
Source§fn clone(&self) -> RequestMeta
fn clone(&self) -> RequestMeta
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for RequestMeta
impl RefUnwindSafe for RequestMeta
impl Send for RequestMeta
impl Sync for RequestMeta
impl Unpin for RequestMeta
impl UnsafeUnpin for RequestMeta
impl UnwindSafe for RequestMeta
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