pub struct SlackRichTextList {
pub style: SlackRichTextListStyle,
pub elements: Vec<SlackRichTextSection>,
pub indent: Option<u64>,
pub offset: Option<u64>,
pub border: Option<u64>,
}Fields§
§style: SlackRichTextListStyle§elements: Vec<SlackRichTextSection>§indent: Option<u64>§offset: Option<u64>§border: Option<u64>Implementations§
Source§impl SlackRichTextList
impl SlackRichTextList
pub fn new( style: SlackRichTextListStyle, elements: Vec<SlackRichTextSection>, ) -> Self
pub fn style(&mut self, value: SlackRichTextListStyle) -> &mut Self
pub fn with_style(self, value: SlackRichTextListStyle) -> Self
pub fn elements(&mut self, value: Vec<SlackRichTextSection>) -> &mut Self
pub fn with_elements(self, value: Vec<SlackRichTextSection>) -> Self
pub fn indent(&mut self, value: u64) -> &mut Self
pub fn reset_indent(&mut self) -> &mut Self
pub fn mopt_indent(&mut self, value: Option<u64>) -> &mut Self
pub fn with_indent(self, value: u64) -> Self
pub fn without_indent(self) -> Self
pub fn opt_indent(self, value: Option<u64>) -> Self
pub fn offset(&mut self, value: u64) -> &mut Self
pub fn reset_offset(&mut self) -> &mut Self
pub fn mopt_offset(&mut self, value: Option<u64>) -> &mut Self
pub fn with_offset(self, value: u64) -> Self
pub fn without_offset(self) -> Self
pub fn opt_offset(self, value: Option<u64>) -> Self
pub fn border(&mut self, value: u64) -> &mut Self
pub fn reset_border(&mut self) -> &mut Self
pub fn mopt_border(&mut self, value: Option<u64>) -> &mut Self
pub fn with_border(self, value: u64) -> Self
pub fn without_border(self) -> Self
pub fn opt_border(self, value: Option<u64>) -> Self
Trait Implementations§
Source§impl Clone for SlackRichTextList
impl Clone for SlackRichTextList
Source§fn clone(&self) -> SlackRichTextList
fn clone(&self) -> SlackRichTextList
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SlackRichTextList
impl Debug for SlackRichTextList
Source§impl<'de> Deserialize<'de> for SlackRichTextList
impl<'de> Deserialize<'de> for SlackRichTextList
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<SlackRichTextList> for SlackRichTextElement
impl From<SlackRichTextList> for SlackRichTextElement
Source§fn from(list: SlackRichTextList) -> Self
fn from(list: SlackRichTextList) -> Self
Converts to this type from the input type.
Source§impl From<SlackRichTextListInit> for SlackRichTextList
impl From<SlackRichTextListInit> for SlackRichTextList
Source§fn from(value: SlackRichTextListInit) -> Self
fn from(value: SlackRichTextListInit) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SlackRichTextList
impl PartialEq for SlackRichTextList
Source§impl Serialize for SlackRichTextList
impl Serialize for SlackRichTextList
impl StructuralPartialEq for SlackRichTextList
Auto Trait Implementations§
impl Freeze for SlackRichTextList
impl RefUnwindSafe for SlackRichTextList
impl Send for SlackRichTextList
impl Sync for SlackRichTextList
impl Unpin for SlackRichTextList
impl UnsafeUnpin for SlackRichTextList
impl UnwindSafe for SlackRichTextList
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