pub struct MetricsSection {
pub enabled: bool,
}Expand description
HTTP request metrics (GET /metrics Prometheus text when enabled).
Fields§
§enabled: boolTrait Implementations§
Source§impl Clone for MetricsSection
impl Clone for MetricsSection
Source§fn clone(&self) -> MetricsSection
fn clone(&self) -> MetricsSection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MetricsSection
impl Debug for MetricsSection
Source§impl Default for MetricsSection
impl Default for MetricsSection
Source§fn default() -> MetricsSection
fn default() -> MetricsSection
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MetricsSection
impl<'de> Deserialize<'de> for MetricsSection
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MetricsSection, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MetricsSection, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MetricsSection
impl RefUnwindSafe for MetricsSection
impl Send for MetricsSection
impl Sync for MetricsSection
impl Unpin for MetricsSection
impl UnsafeUnpin for MetricsSection
impl UnwindSafe for MetricsSection
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