pub struct RichTextBlock {
pub elements: Vec<RichTextObject>,
pub block_id: Option<BlockId>,
}Expand description
Rich text block.
Fields§
§elements: Vec<RichTextObject>An array of rich text objects - rich_text_section, rich_text_list, rich_text_preformatted, and rich_text_quote.
block_id: Option<BlockId>A unique identifier for a block.
Trait Implementations§
Source§impl Clone for RichTextBlock
impl Clone for RichTextBlock
Source§fn clone(&self) -> RichTextBlock
fn clone(&self) -> RichTextBlock
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 RichTextBlock
impl Debug for RichTextBlock
Auto Trait Implementations§
impl Freeze for RichTextBlock
impl RefUnwindSafe for RichTextBlock
impl Send for RichTextBlock
impl Sync for RichTextBlock
impl Unpin for RichTextBlock
impl UnwindSafe for RichTextBlock
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