pub struct FragmentBlock {Show 13 fields
pub plain_text: String,
pub elements: Vec<FragmentElement>,
pub heading_level: Option<i64>,
pub list: Option<FragmentList>,
pub alignment: Option<Alignment>,
pub indent: Option<i64>,
pub text_indent: Option<i64>,
pub marker: Option<MarkerType>,
pub top_margin: Option<i64>,
pub bottom_margin: Option<i64>,
pub left_margin: Option<i64>,
pub right_margin: Option<i64>,
pub tab_positions: Vec<i64>,
}Fields§
§plain_text: String§elements: Vec<FragmentElement>§heading_level: Option<i64>§list: Option<FragmentList>§alignment: Option<Alignment>§indent: Option<i64>§text_indent: Option<i64>§marker: Option<MarkerType>§top_margin: Option<i64>§bottom_margin: Option<i64>§left_margin: Option<i64>§right_margin: Option<i64>§tab_positions: Vec<i64>Implementations§
Source§impl FragmentBlock
impl FragmentBlock
pub fn from_entity( block: &Block, elements: &[InlineElement], list: Option<&List>, ) -> Self
Trait Implementations§
Source§impl Clone for FragmentBlock
impl Clone for FragmentBlock
Source§fn clone(&self) -> FragmentBlock
fn clone(&self) -> FragmentBlock
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 FragmentBlock
impl Debug for FragmentBlock
Source§impl<'de> Deserialize<'de> for FragmentBlock
impl<'de> Deserialize<'de> for FragmentBlock
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
Auto Trait Implementations§
impl Freeze for FragmentBlock
impl RefUnwindSafe for FragmentBlock
impl Send for FragmentBlock
impl Sync for FragmentBlock
impl Unpin for FragmentBlock
impl UnsafeUnpin for FragmentBlock
impl UnwindSafe for FragmentBlock
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