Struct prometheus_http_query::response::Targets
source · pub struct Targets { /* private fields */ }
Expand description
Collection of active and dropped targets as returned by the API.
Implementations§
source§impl Targets
impl Targets
sourcepub fn active(&self) -> &[ActiveTarget]
pub fn active(&self) -> &[ActiveTarget]
Get a list of currently active targets.
sourcepub fn dropped(&self) -> &[DroppedTarget]
pub fn dropped(&self) -> &[DroppedTarget]
Get a list of dropped targets.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Targets
impl<'de> Deserialize<'de> for Targets
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
Auto Trait Implementations§
impl RefUnwindSafe for Targets
impl Send for Targets
impl Sync for Targets
impl Unpin for Targets
impl UnwindSafe for Targets
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