pub struct SlackChartSegment {
pub label: String,
pub value: Number,
}Fields§
§label: String§value: NumberImplementations§
Source§impl SlackChartSegment
impl SlackChartSegment
Sourcepub fn new(label: String, value: Number) -> Self
pub fn new(label: String, value: Number) -> Self
Creates a new SlackChartSegment 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 SlackChartSegment
impl Clone for SlackChartSegment
Source§impl Debug for SlackChartSegment
impl Debug for SlackChartSegment
Source§impl<'de> Deserialize<'de> for SlackChartSegment
impl<'de> Deserialize<'de> for SlackChartSegment
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<SlackChartSegmentInit> for SlackChartSegment
impl From<SlackChartSegmentInit> for SlackChartSegment
Source§fn from(value: SlackChartSegmentInit) -> Self
fn from(value: SlackChartSegmentInit) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SlackChartSegment
impl PartialEq for SlackChartSegment
Source§impl Serialize for SlackChartSegment
impl Serialize for SlackChartSegment
impl StructuralPartialEq for SlackChartSegment
Auto Trait Implementations§
impl Freeze for SlackChartSegment
impl RefUnwindSafe for SlackChartSegment
impl Send for SlackChartSegment
impl Sync for SlackChartSegment
impl Unpin for SlackChartSegment
impl UnsafeUnpin for SlackChartSegment
impl UnwindSafe for SlackChartSegment
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