pub struct ResponseContext {
pub cookies: Option<String>,
pub headers: BTreeMap<String, String>,
pub status_code: Option<u64>,
pub body_size: Option<u64>,
pub data: Option<Value>,
}
Expand description
Holds information about an HTTP response.
Fields§
The unparsed cookie values.
headers: BTreeMap<String, String>
A map of submitted headers.
If a header appears multiple times, it needs to be merged according to the HTTP standard for header merging. Header names are treated case-insensitively by Sentry.
status_code: Option<u64>
The HTTP response status code.
body_size: Option<u64>
The response body size in bytes.
data: Option<Value>
Response data in any format that makes sense.
Trait Implementations§
Source§impl Clone for ResponseContext
impl Clone for ResponseContext
Source§fn clone(&self) -> ResponseContext
fn clone(&self) -> ResponseContext
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 moreSource§impl Debug for ResponseContext
impl Debug for ResponseContext
Source§impl Default for ResponseContext
impl Default for ResponseContext
Source§fn default() -> ResponseContext
fn default() -> ResponseContext
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ResponseContext
impl<'de> Deserialize<'de> for ResponseContext
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ResponseContext, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ResponseContext, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<ResponseContext> for Context
impl From<ResponseContext> for Context
Source§fn from(data: ResponseContext) -> Context
fn from(data: ResponseContext) -> Context
Converts to this type from the input type.
Source§impl PartialEq for ResponseContext
impl PartialEq for ResponseContext
Source§impl Serialize for ResponseContext
impl Serialize for ResponseContext
Source§fn 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 StructuralPartialEq for ResponseContext
Auto Trait Implementations§
impl Freeze for ResponseContext
impl RefUnwindSafe for ResponseContext
impl Send for ResponseContext
impl Sync for ResponseContext
impl Unpin for ResponseContext
impl UnwindSafe for ResponseContext
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