pub struct Node {
pub kind: NodeKind,
pub style: Style,
pub children: Vec<Node>,
pub id: Option<String>,
pub source_location: Option<SourceLocation>,
pub bookmark: Option<String>,
pub href: Option<String>,
pub alt: Option<String>,
}Expand description
A node in the document tree.
Fields§
§kind: NodeKindWhat kind of node this is.
style: StyleStyle properties for this node.
children: Vec<Node>Child nodes.
id: Option<String>A unique identifier for this node (optional, useful for debugging).
source_location: Option<SourceLocation>Source code location for click-to-source in the dev inspector.
bookmark: Option<String>Bookmark title for this node (creates a PDF outline entry).
href: Option<String>Optional hyperlink URL for this node (creates a PDF link annotation).
alt: Option<String>Optional alt text for images and SVGs (accessibility).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Node
impl<'de> Deserialize<'de> for Node
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 Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnsafeUnpin for Node
impl UnwindSafe for Node
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