pub struct ResponseContext {
pub request_id: String,
pub timestamp: Timestamp,
pub duration: Duration,
pub status: ResponseStatus,
pub metadata: Arc<HashMap<String, Value>>,
}Expand description
Context information generated after processing a request, containing response details.
Fields§
§request_id: StringThe ID of the original request this response is for.
timestamp: TimestampThe timestamp when the response was generated.
duration: DurationThe total time taken to process the request.
status: ResponseStatusThe status of the response (e.g., Success, Error).
metadata: Arc<HashMap<String, Value>>A collection of custom metadata for the response.
Implementations§
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 moreAuto 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