pub struct SlackRichTextSection {
pub elements: Vec<SlackRichTextInlineElement>,
}Fields§
§elements: Vec<SlackRichTextInlineElement>Implementations§
Source§impl SlackRichTextSection
impl SlackRichTextSection
Sourcepub fn new(elements: Vec<SlackRichTextInlineElement>) -> Self
pub fn new(elements: Vec<SlackRichTextInlineElement>) -> Self
Creates a new SlackRichTextSection from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn elements(&mut self, value: Vec<SlackRichTextInlineElement>) -> &mut Self
pub fn elements(&mut self, value: Vec<SlackRichTextInlineElement>) -> &mut Self
Sets elements to value.
Sourcepub fn with_elements(self, value: Vec<SlackRichTextInlineElement>) -> Self
pub fn with_elements(self, value: Vec<SlackRichTextInlineElement>) -> Self
Returns self with elements set to value.
Trait Implementations§
Source§impl Clone for SlackRichTextSection
impl Clone for SlackRichTextSection
Source§impl Debug for SlackRichTextSection
impl Debug for SlackRichTextSection
Source§impl<'de> Deserialize<'de> for SlackRichTextSection
impl<'de> Deserialize<'de> for SlackRichTextSection
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<&str> for SlackRichTextSection
A bare string becomes a section holding a single unstyled text run.
impl From<&str> for SlackRichTextSection
A bare string becomes a section holding a single unstyled text run.
Source§impl From<SlackRichTextSection> for SlackRichTextElement
impl From<SlackRichTextSection> for SlackRichTextElement
Source§fn from(element: SlackRichTextSection) -> Self
fn from(element: SlackRichTextSection) -> Self
Converts to this type from the input type.
Source§impl From<SlackRichTextSection> for SlackRichTextListElement
impl From<SlackRichTextSection> for SlackRichTextListElement
Source§fn from(element: SlackRichTextSection) -> Self
fn from(element: SlackRichTextSection) -> Self
Converts to this type from the input type.
Source§impl From<SlackRichTextSectionInit> for SlackRichTextSection
impl From<SlackRichTextSectionInit> for SlackRichTextSection
Source§fn from(value: SlackRichTextSectionInit) -> Self
fn from(value: SlackRichTextSectionInit) -> Self
Converts to this type from the input type.
Source§impl From<String> for SlackRichTextSection
impl From<String> for SlackRichTextSection
Source§impl PartialEq for SlackRichTextSection
impl PartialEq for SlackRichTextSection
Source§impl Serialize for SlackRichTextSection
impl Serialize for SlackRichTextSection
impl StructuralPartialEq for SlackRichTextSection
Auto Trait Implementations§
impl Freeze for SlackRichTextSection
impl RefUnwindSafe for SlackRichTextSection
impl Send for SlackRichTextSection
impl Sync for SlackRichTextSection
impl Unpin for SlackRichTextSection
impl UnsafeUnpin for SlackRichTextSection
impl UnwindSafe for SlackRichTextSection
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