Struct check_graphite::graphite::GraphiteData[][src]

pub struct GraphiteData {
    pub points: Vec<DataPoint>,
    pub target: String,
}

All the data for one fully-resolved target

Any given graphite api call can result in getting data for multiple targets

Fields

points: Vec<DataPoint>target: String

Implementations

impl GraphiteData[src]

pub(crate) fn invalid_points(
    &self,
    comparator: &Box<dyn Fn(f64) -> bool>
) -> Vec<&DataPoint>
[src]

References to the points that exist and do not satisfy the comparator

pub(crate) fn last_invalid_points(
    &self,
    n: usize,
    comparator: &Box<dyn Fn(f64) -> bool>
) -> Vec<&DataPoint>
[src]

Get only invalid points from the end of the list

Trait Implementations

impl Debug for GraphiteData[src]

impl<'de> Deserialize<'de> for GraphiteData[src]

impl IntoIterator for GraphiteData[src]

type Item = DataPoint

The type of the elements being iterated over.

type IntoIter = GraphiteIterator

Which kind of iterator are we turning this into?

impl PartialEq<GraphiteData> for GraphiteData[src]

impl StructuralPartialEq for GraphiteData[src]

Auto Trait Implementations

impl RefUnwindSafe for GraphiteData

impl Send for GraphiteData

impl Sync for GraphiteData

impl Unpin for GraphiteData

impl UnwindSafe for GraphiteData

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.