Struct actix_tools::sentry::sentry_client::protocol::Request [−]
pub struct Request {
pub url: Option<Url>,
pub method: Option<String>,
pub data: Option<String>,
pub query_string: Option<String>,
pub cookies: Option<String>,
pub headers: LinkedHashMap<String, String, RandomState>,
pub env: LinkedHashMap<String, String, RandomState>,
pub other: LinkedHashMap<String, Value, RandomState>,
}Represents http request data.
Fields
url: Option<Url>
The current URL of the request.
method: Option<String>
The HTTP request method.
data: Option<String>
Optionally some associated request data (human readable)
query_string: Option<String>
Optionally the encoded query string.
An encoded cookie string if available.
headers: LinkedHashMap<String, String, RandomState>
HTTP request headers.
env: LinkedHashMap<String, String, RandomState>
Optionally a CGI/WSGI etc. environment dictionary.
other: LinkedHashMap<String, Value, RandomState>
Additional unhandled keys.
Trait Implementations
impl Serialize for Request
impl Serialize for Requestfn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer, Serialize this value into the given Serde serializer. Read more
impl Clone for Request
impl Clone for Requestfn clone(&self) -> Request
fn clone(&self) -> RequestReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Default for Request
impl Default for Requestimpl Debug for Request
impl Debug for Requestfn fmt(&self, f: &mut Formatter) -> Result<(), Error>
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl<'de> Deserialize<'de> for Request where
Request: Default,
impl<'de> Deserialize<'de> for Request where
Request: Default, fn deserialize<__D>(
__deserializer: __D
) -> Result<Request, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Request, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>, Deserialize this value from the given Serde deserializer. Read more
impl PartialEq<Request> for Request
impl PartialEq<Request> for Request