pub struct CustomChartData {
pub series: Vec<ChartSeries>,
pub error: Option<String>,
}Expand description
Data to display in a custom chart pane.
Fields§
§series: Vec<ChartSeries>Series to display
error: Option<String>Error message if fetch failed
Implementations§
Source§impl CustomChartData
impl CustomChartData
Sourcepub fn with_series(series: Vec<ChartSeries>) -> Self
pub fn with_series(series: Vec<ChartSeries>) -> Self
Create chart data with series.
Sourcepub fn with_error(message: impl Into<String>) -> Self
pub fn with_error(message: impl Into<String>) -> Self
Create error result.
Trait Implementations§
Source§impl Clone for CustomChartData
impl Clone for CustomChartData
Source§fn clone(&self) -> CustomChartData
fn clone(&self) -> CustomChartData
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 CustomChartData
impl Debug for CustomChartData
Source§impl PartialEq for CustomChartData
impl PartialEq for CustomChartData
impl StructuralPartialEq for CustomChartData
Auto Trait Implementations§
impl Freeze for CustomChartData
impl RefUnwindSafe for CustomChartData
impl Send for CustomChartData
impl Sync for CustomChartData
impl Unpin for CustomChartData
impl UnsafeUnpin for CustomChartData
impl UnwindSafe for CustomChartData
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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