pub struct BlockNode {
pub block_id: String,
pub doc_id: String,
pub parent_block: Option<String>,
pub ordinal: i64,
pub depth: i64,
pub kind: String,
pub attrs: Value,
pub text: String,
pub raw_hash_hex: String,
pub children: Vec<BlockNode>,
}Expand description
A live block with its children (the containment forest).
Fields§
§block_id: String§doc_id: String§parent_block: Option<String>§ordinal: i64§depth: i64§kind: String§attrs: Value§text: String§raw_hash_hex: String§children: Vec<BlockNode>Trait Implementations§
impl StructuralPartialEq for BlockNode
Auto Trait Implementations§
impl Freeze for BlockNode
impl RefUnwindSafe for BlockNode
impl Send for BlockNode
impl Sync for BlockNode
impl Unpin for BlockNode
impl UnsafeUnpin for BlockNode
impl UnwindSafe for BlockNode
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