pub struct ResponseContext {
pub receive_time: Option<Instant>,
pub attributes: HashMap<String, Value>,
}
Expand description
Context data that can be attached to a response and accessed by filters.
Fields§
§receive_time: Option<Instant>
The time when the response was received from the target
attributes: HashMap<String, Value>
Custom attributes that can be set by filters
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
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