#[non_exhaustive]pub struct ListItem {
pub level: u8,
pub marker: String,
pub checked: Option<ListItemCheckedStatus>,
pub principal: Vec<InlineNode>,
pub blocks: Vec<Block>,
pub location: Location,
}Expand description
A ListItem represents a list item in a document.
List items have principal text (inline content immediately after the marker) and
optionally attached blocks (via continuation or nesting). This matches Asciidoctor’s
AST structure where principal text renders as bare <p> and attached blocks render
with their full wrapper divs.
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.level: u8§marker: String§checked: Option<ListItemCheckedStatus>§principal: Vec<InlineNode>Principal text - inline content that appears immediately after the list marker
blocks: Vec<Block>Attached blocks - blocks attached via continuation (+) or nesting
location: LocationTrait Implementations§
Source§impl<'de> Deserialize<'de> for ListItem
impl<'de> Deserialize<'de> for ListItem
Source§fn deserialize<D>(deserializer: D) -> Result<ListItem, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<ListItem, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for ListItem
Auto Trait Implementations§
impl Freeze for ListItem
impl RefUnwindSafe for ListItem
impl Send for ListItem
impl Sync for ListItem
impl Unpin for ListItem
impl UnwindSafe for ListItem
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