pub struct SlackChartDataSeries {
pub name: String,
pub data: Vec<SlackChartDataPoint>,
}Fields§
§name: String§data: Vec<SlackChartDataPoint>Implementations§
Source§impl SlackChartDataSeries
impl SlackChartDataSeries
Sourcepub fn new(name: String, data: Vec<SlackChartDataPoint>) -> Self
pub fn new(name: String, data: Vec<SlackChartDataPoint>) -> Self
Creates a new SlackChartDataSeries from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn data(&mut self, value: Vec<SlackChartDataPoint>) -> &mut Self
pub fn data(&mut self, value: Vec<SlackChartDataPoint>) -> &mut Self
Sets data to value.
Sourcepub fn with_data(self, value: Vec<SlackChartDataPoint>) -> Self
pub fn with_data(self, value: Vec<SlackChartDataPoint>) -> Self
Returns self with data set to value.
Trait Implementations§
Source§impl Clone for SlackChartDataSeries
impl Clone for SlackChartDataSeries
Source§impl Debug for SlackChartDataSeries
impl Debug for SlackChartDataSeries
Source§impl<'de> Deserialize<'de> for SlackChartDataSeries
impl<'de> Deserialize<'de> for SlackChartDataSeries
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
Source§impl From<SlackChartDataSeriesInit> for SlackChartDataSeries
impl From<SlackChartDataSeriesInit> for SlackChartDataSeries
Source§fn from(value: SlackChartDataSeriesInit) -> Self
fn from(value: SlackChartDataSeriesInit) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SlackChartDataSeries
impl PartialEq for SlackChartDataSeries
Source§impl Serialize for SlackChartDataSeries
impl Serialize for SlackChartDataSeries
impl StructuralPartialEq for SlackChartDataSeries
Auto Trait Implementations§
impl Freeze for SlackChartDataSeries
impl RefUnwindSafe for SlackChartDataSeries
impl Send for SlackChartDataSeries
impl Sync for SlackChartDataSeries
impl Unpin for SlackChartDataSeries
impl UnsafeUnpin for SlackChartDataSeries
impl UnwindSafe for SlackChartDataSeries
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