Struct prometheus_http_query::RangeVector
source · [−]pub struct RangeVector(pub String);
Expand description
An range vector expression that can be further operated on with functions/aggregations
or passed to a Client
in order to evaluate.
Tuple Fields
0: String
Trait Implementations
sourceimpl Debug for RangeVector
impl Debug for RangeVector
sourceimpl Display for RangeVector
impl Display for RangeVector
sourceimpl PartialEq<RangeVector> for RangeVector
impl PartialEq<RangeVector> for RangeVector
sourcefn eq(&self, other: &RangeVector) -> bool
fn eq(&self, other: &RangeVector) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &RangeVector) -> bool
fn ne(&self, other: &RangeVector) -> bool
This method tests for !=
.
sourceimpl TryFrom<Selector<'_>> for RangeVector
impl TryFrom<Selector<'_>> for RangeVector
sourcefn try_from(selector: Selector<'_>) -> Result<RangeVector, Self::Error>
fn try_from(selector: Selector<'_>) -> Result<RangeVector, Self::Error>
Convert a Selector to a RangeVector.
use prometheus_http_query::{Selector, RangeVector, Error};
use std::convert::TryInto;
fn main() -> Result<(), Error> {
let v: Result<RangeVector, Error> = Selector::new()
.metric("some_metric")
.range("1m30s")?
.try_into();
assert!(v.is_ok());
Ok(())
}
impl StructuralPartialEq for RangeVector
Auto Trait Implementations
impl RefUnwindSafe for RangeVector
impl Send for RangeVector
impl Sync for RangeVector
impl Unpin for RangeVector
impl UnwindSafe for RangeVector
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more