pub struct DocumentBody {
pub id: String,
pub title: Option<String>,
pub block_styles: Vec<BlockStyle>,
pub pages: Vec<Page>,
}Expand description
The document child of the root zenith node.
Named DocumentBody to avoid clashing with the root Document type.
Fields§
§id: String§title: Option<String>§block_styles: Vec<BlockStyle>Per-role markdown block style declarations at document scope. Empty when
no block role="…" children are declared on the document node. Lowest
cascade precedence: document < page < text. Data-only in this unit.
pages: Vec<Page>Trait Implementations§
Source§impl Clone for DocumentBody
impl Clone for DocumentBody
Source§fn clone(&self) -> DocumentBody
fn clone(&self) -> DocumentBody
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DocumentBody
impl Debug for DocumentBody
Source§impl PartialEq for DocumentBody
impl PartialEq for DocumentBody
Source§fn eq(&self, other: &DocumentBody) -> bool
fn eq(&self, other: &DocumentBody) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DocumentBody
Auto Trait Implementations§
impl Freeze for DocumentBody
impl RefUnwindSafe for DocumentBody
impl Send for DocumentBody
impl Sync for DocumentBody
impl Unpin for DocumentBody
impl UnsafeUnpin for DocumentBody
impl UnwindSafe for DocumentBody
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