Struct cdp::dom_snapshot::DomNode
[−]
[src]
pub struct DomNode<'a> { pub node_type: i32, pub node_name: Cow<'a, str>, pub node_value: Cow<'a, str>, pub text_value: Option<Cow<'a, str>>, pub input_value: Option<Cow<'a, str>>, pub input_checked: Option<bool>, pub option_selected: Option<bool>, pub backend_node_id: BackendNodeId, pub child_node_indexes: Option<Vec<i32>>, pub attributes: Option<Vec<NameValue<'a>>>, pub pseudo_element_indexes: Option<Vec<i32>>, pub layout_node_index: Option<i32>, pub document_url: Option<Cow<'a, str>>, pub base_url: Option<Cow<'a, str>>, pub content_language: Option<Cow<'a, str>>, pub document_encoding: Option<Cow<'a, str>>, pub public_id: Option<Cow<'a, str>>, pub system_id: Option<Cow<'a, str>>, pub frame_id: Option<FrameId<'a>>, pub content_document_index: Option<i32>, pub imported_document_index: Option<i32>, pub template_content_index: Option<i32>, pub pseudo_type: Option<PseudoType>, pub is_clickable: Option<bool>, }
[Experimental] A Node in the DOM tree.
Fields
node_type: i32
Node
's nodeType.
node_name: Cow<'a, str>
Node
's nodeName.
node_value: Cow<'a, str>
Node
's nodeValue.
text_value: Option<Cow<'a, str>>
Only set for textarea elements, contains the text value.
input_value: Option<Cow<'a, str>>
Only set for input elements, contains the input's associated text value.
input_checked: Option<bool>
Only set for radio and checkbox input elements, indicates if the element has been checked
option_selected: Option<bool>
Only set for option elements, indicates if the element has been selected
backend_node_id: BackendNodeId
Node
's id, corresponds to DOM.Node.backendNodeId.
child_node_indexes: Option<Vec<i32>>
The indexes of the node's child nodes in the domNodes
array returned by getSnapshot
, if any.
attributes: Option<Vec<NameValue<'a>>>
Attributes of an Element
node.
pseudo_element_indexes: Option<Vec<i32>>
Indexes of pseudo elements associated with this node in the domNodes
array returned by getSnapshot
, if any.
layout_node_index: Option<i32>
The index of the node's related layout tree node in the layoutTreeNodes
array returned by getSnapshot
, if any.
document_url: Option<Cow<'a, str>>
Document URL that Document
or FrameOwner
node points to.
base_url: Option<Cow<'a, str>>
Base URL that Document
or FrameOwner
node uses for URL completion.
content_language: Option<Cow<'a, str>>
Only set for documents, contains the document's content language.
document_encoding: Option<Cow<'a, str>>
Only set for documents, contains the document's character set encoding.
public_id: Option<Cow<'a, str>>
DocumentType
node's publicId.
system_id: Option<Cow<'a, str>>
DocumentType
node's systemId.
frame_id: Option<FrameId<'a>>
Frame ID for frame owner elements and also for the document node.
content_document_index: Option<i32>
The index of a frame owner element's content document in the domNodes
array returned by getSnapshot
, if any.
imported_document_index: Option<i32>
Index of the imported document's node of a link element in the domNodes
array returned by getSnapshot
, if any.
template_content_index: Option<i32>
Index of the content node of a template element in the domNodes
array returned by getSnapshot
.
pseudo_type: Option<PseudoType>
Type of a pseudo element node.
is_clickable: Option<bool>
Whether this DOM node responds to mouse clicks. This includes nodes that have had click event listeners attached via JavaScript as well as anchor tags that naturally navigate when clicked.
Trait Implementations
impl<'a> Clone for DomNode<'a>
[src]
fn clone(&self) -> DomNode<'a>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more