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