#[non_exhaustive]pub struct Parts {
pub method: Method,
pub uri: Url,
pub version: Version,
pub headers: HeaderMap<HeaderValue>,
pub user: Option<User>,
pub path_params: Vec<(String, String)>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.method: MethodThe request’s method
uri: UrlThe request’s URI
version: VersionThe request’s version
headers: HeaderMap<HeaderValue>The request’s headers
user: Option<User>User metadata
path_params: Vec<(String, String)>Path params, e.g. /test/{param}/.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Parts
impl RefUnwindSafe for Parts
impl Send for Parts
impl Sync for Parts
impl Unpin for Parts
impl UnsafeUnpin for Parts
impl UnwindSafe for Parts
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