pub struct TimeseriesSourceData<'source, 'slice, 'value> {
pub graph_type: GraphType,
pub stacking_type: StackingType,
pub timeseries_data: &'slice [&'source Timeseries],
pub time_range: TimeRange,
pub additional_values: &'value [f64],
}Expand description
All the data necessary to generate an abstract chart from an array of timeseries.
Fields§
§graph_type: GraphTypeThe type of chart to display.
stacking_type: StackingTypeThe type of stacking to apply to the chart.
timeseries_data: &'slice [&'source Timeseries]Array of timeseries data to display in the chart.
Make sure the timeseries contains data for the given time range, or you may not see any results.
time_range: TimeRangeThe time range to be displayed.
additional_values: &'value [f64]Additional values that will be plotted on the chart, but which are not part of any timeseries. These are not plotted, but are taken into account when deciding the range of the Y axis.
Auto Trait Implementations§
impl<'source, 'slice, 'value> Freeze for TimeseriesSourceData<'source, 'slice, 'value>
impl<'source, 'slice, 'value> RefUnwindSafe for TimeseriesSourceData<'source, 'slice, 'value>
impl<'source, 'slice, 'value> Send for TimeseriesSourceData<'source, 'slice, 'value>
impl<'source, 'slice, 'value> Sync for TimeseriesSourceData<'source, 'slice, 'value>
impl<'source, 'slice, 'value> Unpin for TimeseriesSourceData<'source, 'slice, 'value>
impl<'source, 'slice, 'value> UnwindSafe for TimeseriesSourceData<'source, 'slice, 'value>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more