pub struct EndpointHits {
pub total_calls: u64,
pub success_count: u64,
pub client_error_count: u64,
pub server_error_count: u64,
pub status_codes: HashMap<u16, u64>,
}Expand description
Endpoint hit statistics.
Fields§
§total_calls: u64Total number of times this endpoint was called.
success_count: u64Number of successful responses (2xx).
client_error_count: u64Number of client error responses (4xx).
server_error_count: u64Number of server error responses (5xx).
status_codes: HashMap<u16, u64>Status codes observed.
Trait Implementations§
Source§impl Clone for EndpointHits
impl Clone for EndpointHits
Source§fn clone(&self) -> EndpointHits
fn clone(&self) -> EndpointHits
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 EndpointHits
impl Debug for EndpointHits
Source§impl Default for EndpointHits
impl Default for EndpointHits
Source§fn default() -> EndpointHits
fn default() -> EndpointHits
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EndpointHits
impl RefUnwindSafe for EndpointHits
impl Send for EndpointHits
impl Sync for EndpointHits
impl Unpin for EndpointHits
impl UnwindSafe for EndpointHits
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).