pub struct SlackRichTextList {
pub style: SlackRichTextListStyle,
pub elements: Vec<SlackRichTextListElement>,
pub indent: Option<u64>,
pub offset: Option<u64>,
pub border: Option<u64>,
}Fields§
§style: SlackRichTextListStyle§elements: Vec<SlackRichTextListElement>§indent: Option<u64>§offset: Option<u64>§border: Option<u64>Implementations§
Source§impl SlackRichTextList
impl SlackRichTextList
Sourcepub fn new(
style: SlackRichTextListStyle,
elements: Vec<SlackRichTextListElement>,
) -> Self
pub fn new( style: SlackRichTextListStyle, elements: Vec<SlackRichTextListElement>, ) -> Self
Creates a new SlackRichTextList from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn style(&mut self, value: SlackRichTextListStyle) -> &mut Self
pub fn style(&mut self, value: SlackRichTextListStyle) -> &mut Self
Sets style to value.
Sourcepub fn with_style(self, value: SlackRichTextListStyle) -> Self
pub fn with_style(self, value: SlackRichTextListStyle) -> Self
Returns self with style set to value.
Sourcepub fn elements(&mut self, value: Vec<SlackRichTextListElement>) -> &mut Self
pub fn elements(&mut self, value: Vec<SlackRichTextListElement>) -> &mut Self
Sets elements to value.
Sourcepub fn with_elements(self, value: Vec<SlackRichTextListElement>) -> Self
pub fn with_elements(self, value: Vec<SlackRichTextListElement>) -> Self
Returns self with elements set to value.
Sourcepub fn reset_indent(&mut self) -> &mut Self
pub fn reset_indent(&mut self) -> &mut Self
Sets indent to None.
Sourcepub fn mopt_indent(&mut self, value: Option<u64>) -> &mut Self
pub fn mopt_indent(&mut self, value: Option<u64>) -> &mut Self
Sets indent to the given Option.
Sourcepub fn with_indent(self, value: u64) -> Self
pub fn with_indent(self, value: u64) -> Self
Returns self with indent set to Some(value).
Sourcepub fn without_indent(self) -> Self
pub fn without_indent(self) -> Self
Returns self with indent set to None.
Sourcepub fn opt_indent(self, value: Option<u64>) -> Self
pub fn opt_indent(self, value: Option<u64>) -> Self
Returns self with indent set to the given Option.
Sourcepub fn reset_offset(&mut self) -> &mut Self
pub fn reset_offset(&mut self) -> &mut Self
Sets offset to None.
Sourcepub fn mopt_offset(&mut self, value: Option<u64>) -> &mut Self
pub fn mopt_offset(&mut self, value: Option<u64>) -> &mut Self
Sets offset to the given Option.
Sourcepub fn with_offset(self, value: u64) -> Self
pub fn with_offset(self, value: u64) -> Self
Returns self with offset set to Some(value).
Sourcepub fn without_offset(self) -> Self
pub fn without_offset(self) -> Self
Returns self with offset set to None.
Sourcepub fn opt_offset(self, value: Option<u64>) -> Self
pub fn opt_offset(self, value: Option<u64>) -> Self
Returns self with offset set to the given Option.
Sourcepub fn reset_border(&mut self) -> &mut Self
pub fn reset_border(&mut self) -> &mut Self
Sets border to None.
Sourcepub fn mopt_border(&mut self, value: Option<u64>) -> &mut Self
pub fn mopt_border(&mut self, value: Option<u64>) -> &mut Self
Sets border to the given Option.
Sourcepub fn with_border(self, value: u64) -> Self
pub fn with_border(self, value: u64) -> Self
Returns self with border set to Some(value).
Sourcepub fn without_border(self) -> Self
pub fn without_border(self) -> Self
Returns self with border set to None.
Sourcepub fn opt_border(self, value: Option<u64>) -> Self
pub fn opt_border(self, value: Option<u64>) -> Self
Returns self with border set to the given Option.