pub struct SlackPieChart {
pub segments: Vec<SlackChartSegment>,
}Expand description
1–12 segments; each renders as value / sum(values).
Fields§
§segments: Vec<SlackChartSegment>Implementations§
Source§impl SlackPieChart
impl SlackPieChart
Sourcepub fn new(segments: Vec<SlackChartSegment>) -> Self
pub fn new(segments: Vec<SlackChartSegment>) -> Self
Creates a new SlackPieChart from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn segments(&mut self, value: Vec<SlackChartSegment>) -> &mut Self
pub fn segments(&mut self, value: Vec<SlackChartSegment>) -> &mut Self
Sets segments to value.
Sourcepub fn with_segments(self, value: Vec<SlackChartSegment>) -> Self
pub fn with_segments(self, value: Vec<SlackChartSegment>) -> Self
Returns self with segments set to value.
Trait Implementations§
Source§impl Clone for SlackPieChart
impl Clone for SlackPieChart
Source§impl Debug for SlackPieChart
impl Debug for SlackPieChart
Source§impl<'de> Deserialize<'de> for SlackPieChart
impl<'de> Deserialize<'de> for SlackPieChart
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<SlackPieChartInit> for SlackPieChart
impl From<SlackPieChartInit> for SlackPieChart
Source§fn from(value: SlackPieChartInit) -> Self
fn from(value: SlackPieChartInit) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SlackPieChart
impl PartialEq for SlackPieChart
Source§impl Serialize for SlackPieChart
impl Serialize for SlackPieChart
impl StructuralPartialEq for SlackPieChart
Auto Trait Implementations§
impl Freeze for SlackPieChart
impl RefUnwindSafe for SlackPieChart
impl Send for SlackPieChart
impl Sync for SlackPieChart
impl Unpin for SlackPieChart
impl UnsafeUnpin for SlackPieChart
impl UnwindSafe for SlackPieChart
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