pub struct RequestInfo {
pub method: Method,
pub path: String,
pub protocol: String,
pub get_variables: ParamMap,
pub post_variables: ParamMap,
pub uploaded_files: Rc<HashMap<String, TempFile>>,
pub headers: ParamMap,
pub client_ip: Option<IpAddr>,
pub cookies: ParamMap,
pub basic_auth: Option<Basic>,
pub app_state: Arc<AppState>,
pub clone_depth: u8,
}
Fields§
§method: Method
§path: String
§protocol: String
§get_variables: ParamMap
§post_variables: ParamMap
§uploaded_files: Rc<HashMap<String, TempFile>>
§headers: ParamMap
§client_ip: Option<IpAddr>
§basic_auth: Option<Basic>
§app_state: Arc<AppState>
§clone_depth: u8
Implementations§
source§impl RequestInfo
impl RequestInfo
pub fn clone_without_variables(&self) -> Self
Trait Implementations§
source§impl Clone for RequestInfo
impl Clone for RequestInfo
Auto Trait Implementations§
impl Freeze for RequestInfo
impl !RefUnwindSafe for RequestInfo
impl !Send for RequestInfo
impl !Sync for RequestInfo
impl Unpin for RequestInfo
impl !UnwindSafe for RequestInfo
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more