#[non_exhaustive]pub struct LayoutTextBlock {
pub text: String,
pub type: String,
pub blocks: Vec<DocumentLayoutBlock>,
/* private fields */
}Expand description
Represents a text type block.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.text: StringText content stored in the block.
type: StringType of the text in the block. Available options are: paragraph,
subtitle, heading-1, heading-2, heading-3, heading-4,
heading-5, header, footer.
blocks: Vec<DocumentLayoutBlock>A text block could further have child blocks. Repeated blocks support further hierarchies and nested blocks.
Implementations§
Trait Implementations§
Source§impl Clone for LayoutTextBlock
impl Clone for LayoutTextBlock
Source§fn clone(&self) -> LayoutTextBlock
fn clone(&self) -> LayoutTextBlock
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 LayoutTextBlock
impl Debug for LayoutTextBlock
Source§impl Default for LayoutTextBlock
impl Default for LayoutTextBlock
Source§fn default() -> LayoutTextBlock
fn default() -> LayoutTextBlock
Returns the “default value” for a type. Read more
Source§impl Message for LayoutTextBlock
impl Message for LayoutTextBlock
Source§impl PartialEq for LayoutTextBlock
impl PartialEq for LayoutTextBlock
impl StructuralPartialEq for LayoutTextBlock
Auto Trait Implementations§
impl Freeze for LayoutTextBlock
impl RefUnwindSafe for LayoutTextBlock
impl Send for LayoutTextBlock
impl Sync for LayoutTextBlock
impl Unpin for LayoutTextBlock
impl UnwindSafe for LayoutTextBlock
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