Struct chrome_remote_interface_model::dom_snapshot::DomNode[][src]

pub struct DomNode { /* fields omitted */ }
This is supported on crate features experimental and DOMSnapshot and CSS and DOM and DOMDebugger and Page only.

A Node in the DOM tree.

Implementations

impl DomNode[src]

pub fn builder() -> DomNodeBuilder[src]

pub fn node_type(&self) -> u32[src]

Node's nodeType.

pub fn node_name(&self) -> &str[src]

Node's nodeName.

pub fn node_value(&self) -> &str[src]

Node's nodeValue.

pub fn text_value(&self) -> Option<&String>[src]

Only set for textarea elements, contains the text value.

pub fn input_value(&self) -> Option<&String>[src]

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

pub fn input_checked(&self) -> Option<&bool>[src]

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

pub fn option_selected(&self) -> Option<&bool>[src]

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

pub fn backend_node_id(&self) -> &BackendNodeId[src]

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

pub fn child_node_indexes(&self) -> Option<&Vec<u32>>[src]

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

pub fn attributes(&self) -> Option<&Vec<NameValue>>[src]

Attributes of an Element node.

pub fn pseudo_element_indexes(&self) -> Option<&Vec<u32>>[src]

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

pub fn layout_node_index(&self) -> Option<&u32>[src]

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

pub fn document_url(&self) -> Option<&String>[src]

Document URL that Document or FrameOwner node points to.

pub fn base_url(&self) -> Option<&String>[src]

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

pub fn content_language(&self) -> Option<&String>[src]

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

pub fn document_encoding(&self) -> Option<&String>[src]

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

pub fn public_id(&self) -> Option<&String>[src]

DocumentType node's publicId.

pub fn system_id(&self) -> Option<&String>[src]

DocumentType node's systemId.

pub fn frame_id(&self) -> Option<&FrameId>[src]

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

pub fn content_document_index(&self) -> Option<&u32>[src]

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

pub fn pseudo_type(&self) -> Option<&PseudoType>[src]

Type of a pseudo element node.

pub fn shadow_root_type(&self) -> Option<&ShadowRootType>[src]

Shadow root type.

pub fn is_clickable(&self) -> Option<&bool>[src]

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.

pub fn event_listeners(&self) -> Option<&Vec<EventListener>>[src]

Details of the node's event listeners, if any.

pub fn current_source_url(&self) -> Option<&String>[src]

The selected url for nodes with a srcset attribute.

pub fn origin_url(&self) -> Option<&String>[src]

The url of the script (if any) that generates this node.

pub fn scroll_offset_x(&self) -> Option<&f64>[src]

Scroll offsets, set when this node is a Document.

pub fn scroll_offset_y(&self) -> Option<&f64>[src]

Trait Implementations

impl Clone for DomNode[src]

impl Debug for DomNode[src]

impl<'de> Deserialize<'de> for DomNode[src]

impl Serialize for DomNode[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.