pub struct Node {Show 13 fields
pub node_id: NodeId,
pub node_type: i32,
pub node_name: String,
pub local_name: String,
pub node_value: String,
pub child_node_count: Option<i32>,
pub children: Option<Vec<Node>>,
pub attributes: Option<Vec<String>>,
pub document_url: Option<String>,
pub base_url: Option<String>,
pub content_document: Option<Box<Node>>,
pub shadow_roots: Option<Vec<Node>>,
pub frame_id: Option<String>,
}Expand description
DOM Node.
Fields§
§node_id: NodeIdNode identifier that is passed into the rest of the DOM messages.
node_type: i32Node’s nodeType.
node_name: StringNode’s nodeName.
local_name: StringNode’s local name.
node_value: StringNode’s nodeValue.
child_node_count: Option<i32>Child count for Container nodes.
children: Option<Vec<Node>>Child nodes of this node when requested.
attributes: Option<Vec<String>>Attributes of the Element node in the form of flat array.
document_url: Option<String>Document URL.
base_url: Option<String>Base URL.
content_document: Option<Box<Node>>Content document for frame owner elements.
shadow_roots: Option<Vec<Node>>Shadow root list for given element host.
frame_id: Option<String>Frame ID for frame owner elements.
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 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