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's nodeType.

Node's nodeName.

Node's nodeValue.

Only set for textarea elements, contains the text value.

Only set for input elements, contains the input's associated text value.

Only set for radio and checkbox input elements, indicates if the element has been checked

Only set for option elements, indicates if the element has been selected

Node's id, corresponds to DOM.Node.backendNodeId.

The indexes of the node's child nodes in the domNodes array returned by getSnapshot, if any.

Attributes of an Element node.

Indexes of pseudo elements associated with this node in the domNodes array returned by getSnapshot, if any.

The index of the node's related layout tree node in the layoutTreeNodes array returned by getSnapshot, if any.

Document URL that Document or FrameOwner node points to.

Base URL that Document or FrameOwner node uses for URL completion.

Only set for documents, contains the document's content language.

Only set for documents, contains the document's character set encoding.

DocumentType node's publicId.

DocumentType node's systemId.

Frame ID for frame owner elements and also for the document node.

The index of a frame owner element's content document in the domNodes array returned by getSnapshot, if any.

Index of the imported document's node of a link element in the domNodes array returned by getSnapshot, if any.

Index of the content node of a template element in the domNodes array returned by getSnapshot.

Type of a pseudo element node.

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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> Debug for DomNode<'a>
[src]

[src]

Formats the value using the given formatter.

impl<'a> PartialEq for DomNode<'a>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.