pub struct StandardBlockNode {
pub depth: Option<u8>,
pub ordered: Option<bool>,
pub checked: Option<bool>,
pub id: Option<String>,
pub children: Vec<Node>,
pub position: Position,
}Expand description
A standard CommonMark block node.
Fields§
§depth: Option<u8>§ordered: Option<bool>§checked: Option<bool>For list items: whether a task list checkbox is checked.
id: Option<String>For headings: an explicit ID attribute (# Title {#my-id}).
children: Vec<Node>§position: PositionTrait Implementations§
Source§impl Clone for StandardBlockNode
impl Clone for StandardBlockNode
Source§fn clone(&self) -> StandardBlockNode
fn clone(&self) -> StandardBlockNode
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 StandardBlockNode
impl Debug for StandardBlockNode
Source§impl<'de> Deserialize<'de> for StandardBlockNode
impl<'de> Deserialize<'de> for StandardBlockNode
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<StandardBlockNode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<StandardBlockNode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for StandardBlockNode
impl PartialEq for StandardBlockNode
Source§impl Serialize for StandardBlockNode
impl Serialize for StandardBlockNode
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for StandardBlockNode
Auto Trait Implementations§
impl Freeze for StandardBlockNode
impl RefUnwindSafe for StandardBlockNode
impl Send for StandardBlockNode
impl Sync for StandardBlockNode
impl Unpin for StandardBlockNode
impl UnsafeUnpin for StandardBlockNode
impl UnwindSafe for StandardBlockNode
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