pub struct DescribeNodeReturn { /* private fields */ }DOM and Runtime only.Expand description
Describes node given its id, does not require domain to be enabled. Does not start tracking any objects, can be used for automation.
Implementations§
Methods from Deref<Target = Node>§
Sourcepub fn node_id(&self) -> &NodeId
pub fn node_id(&self) -> &NodeId
Node identifier that is passed into the rest of the DOM messages as the nodeId. Backend
will only push node with given id once. It is aware of all requested nodes and will only
fire DOM events for nodes known to the client.
Sourcepub fn backend_node_id(&self) -> &BackendNodeId
pub fn backend_node_id(&self) -> &BackendNodeId
The BackendNodeId for this node.
Sourcepub fn local_name(&self) -> &str
pub fn local_name(&self) -> &str
Node’s localName.
Sourcepub fn node_value(&self) -> &str
pub fn node_value(&self) -> &str
Node’s nodeValue.
Sourcepub fn child_node_count(&self) -> Option<&u32>
pub fn child_node_count(&self) -> Option<&u32>
Child count for Container nodes.
Sourcepub fn children(&self) -> Option<&Vec<Node>>
pub fn children(&self) -> Option<&Vec<Node>>
Child nodes of this node when requested with children.
Sourcepub fn attributes(&self) -> Option<&Vec<String>>
pub fn attributes(&self) -> Option<&Vec<String>>
Attributes of the Element node in the form of flat array [name1, value1, name2, value2].
Sourcepub fn document_url(&self) -> Option<&String>
pub fn document_url(&self) -> Option<&String>
Document URL that Document or FrameOwner node points to.
Sourcepub fn base_url(&self) -> Option<&String>
pub fn base_url(&self) -> Option<&String>
Base URL that Document or FrameOwner node uses for URL completion.
Sourcepub fn internal_subset(&self) -> Option<&String>
pub fn internal_subset(&self) -> Option<&String>
DocumentType’s internalSubset.
Sourcepub fn xml_version(&self) -> Option<&String>
pub fn xml_version(&self) -> Option<&String>
Document’s XML version in case of XML documents.
Sourcepub fn pseudo_type(&self) -> Option<&PseudoType>
pub fn pseudo_type(&self) -> Option<&PseudoType>
Pseudo element type for this node.
Sourcepub fn shadow_root_type(&self) -> Option<&ShadowRootType>
pub fn shadow_root_type(&self) -> Option<&ShadowRootType>
Shadow root type.
Sourcepub fn content_document(&self) -> Option<&Node>
pub fn content_document(&self) -> Option<&Node>
Content document for frame owner elements.
Sourcepub fn shadow_roots(&self) -> Option<&Vec<Node>>
pub fn shadow_roots(&self) -> Option<&Vec<Node>>
Shadow root list for given element host.
Sourcepub fn template_content(&self) -> Option<&Node>
pub fn template_content(&self) -> Option<&Node>
Content document fragment for template elements.
Sourcepub fn pseudo_elements(&self) -> Option<&Vec<Node>>
pub fn pseudo_elements(&self) -> Option<&Vec<Node>>
Pseudo elements associated with this node.
Sourcepub fn imported_document(&self) -> Option<&Node>
pub fn imported_document(&self) -> Option<&Node>
Import document for the HTMLImport links.
Sourcepub fn distributed_nodes(&self) -> Option<&Vec<BackendNode>>
pub fn distributed_nodes(&self) -> Option<&Vec<BackendNode>>
Distributed nodes for given insertion point.
Trait Implementations§
Source§impl Clone for DescribeNodeReturn
impl Clone for DescribeNodeReturn
Source§fn clone(&self) -> DescribeNodeReturn
fn clone(&self) -> DescribeNodeReturn
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more