pub struct MetricsData {
pub endpoint: String,
pub start: Instant,
pub method: &'static str,
pub body_size: f64,
/* private fields */
}
Expand description
Struct used for storing and calculating information about the current request.
Fields§
§endpoint: String
§start: Instant
§method: &'static str
§body_size: f64
Trait Implementations§
Source§impl Clone for MetricsData
impl Clone for MetricsData
Source§fn clone(&self) -> MetricsData
fn clone(&self) -> MetricsData
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 MetricsData
impl RefUnwindSafe for MetricsData
impl Send for MetricsData
impl Sync for MetricsData
impl Unpin for MetricsData
impl UnwindSafe for MetricsData
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