pub struct AppMetrics {
pub path: String,
pub port: i32,
}Fields§
§path: Stringpath to scrape metrics
port: i32port must be also exposed in one of AppService.routing[]
Implementations§
Source§impl AppMetrics
impl AppMetrics
pub fn new(path: String, port: i32) -> AppMetrics
Trait Implementations§
Source§impl Clone for AppMetrics
impl Clone for AppMetrics
Source§fn clone(&self) -> AppMetrics
fn clone(&self) -> AppMetrics
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 AppMetrics
impl Debug for AppMetrics
Source§impl Default for AppMetrics
impl Default for AppMetrics
Source§fn default() -> AppMetrics
fn default() -> AppMetrics
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AppMetrics
impl<'de> Deserialize<'de> for AppMetrics
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AppMetrics
impl PartialEq for AppMetrics
Source§impl Serialize for AppMetrics
impl Serialize for AppMetrics
impl StructuralPartialEq for AppMetrics
Auto Trait Implementations§
impl Freeze for AppMetrics
impl RefUnwindSafe for AppMetrics
impl Send for AppMetrics
impl Sync for AppMetrics
impl Unpin for AppMetrics
impl UnwindSafe for AppMetrics
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