pub struct RichTextSection {
pub elements: Vec<RichTextElement>,
/* private fields */
}Expand description
A rich text section. https://docs.slack.dev/reference/block-kit/block-elements/rich-text-section-element
Fields§
§elements: Vec<RichTextElement>Implementations§
Source§impl RichTextSection
impl RichTextSection
pub fn new(elements: Vec<RichTextElement>) -> Self
Trait Implementations§
Source§impl Clone for RichTextSection
impl Clone for RichTextSection
Source§impl Debug for RichTextSection
impl Debug for RichTextSection
Source§impl<'de> Deserialize<'de> for RichTextSection
impl<'de> Deserialize<'de> for RichTextSection
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<RichTextSection> for RichTextObject
impl From<RichTextSection> for RichTextObject
Source§fn from(value: RichTextSection) -> Self
fn from(value: RichTextSection) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RichTextSection
impl PartialEq for RichTextSection
Source§impl Serialize for RichTextSection
impl Serialize for RichTextSection
impl StructuralPartialEq for RichTextSection
Auto Trait Implementations§
impl Freeze for RichTextSection
impl RefUnwindSafe for RichTextSection
impl Send for RichTextSection
impl Sync for RichTextSection
impl Unpin for RichTextSection
impl UnsafeUnpin for RichTextSection
impl UnwindSafe for RichTextSection
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