pub struct DomNode {
pub id: NodeId,
pub tag: String,
pub element_id: String,
pub class_list: Vec<String>,
pub text_content: String,
pub inner_html_content: String,
pub attributes: BTreeMap<String, String>,
pub children: Vec<NodeId>,
pub parent: Option<NodeId>,
pub style: BTreeMap<String, String>,
}Expand description
Simplified DOM node for JS bindings
Fields§
§id: NodeIdNode ID
tag: StringTag name (e.g., “div”, “p”, “span”)
element_id: StringElement ID attribute
class_list: Vec<String>Class names
text_content: StringText content
inner_html_content: StringInner HTML (raw text representation)
attributes: BTreeMap<String, String>Attributes
children: Vec<NodeId>Child node IDs
parent: Option<NodeId>Parent node ID
style: BTreeMap<String, String>Inline style properties
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DomNode
impl RefUnwindSafe for DomNode
impl Send for DomNode
impl Sync for DomNode
impl Unpin for DomNode
impl UnwindSafe for DomNode
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)