Struct chrome_remote_interface_model::dom_snapshot::NodeTreeSnapshot[][src]

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

Table containing nodes.

Implementations

impl NodeTreeSnapshot[src]

pub fn builder() -> NodeTreeSnapshotBuilder[src]

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

Parent node index.

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

Node's nodeType.

pub fn node_name(&self) -> Option<&Vec<StringIndex>>[src]

Node's nodeName.

pub fn node_value(&self) -> Option<&Vec<StringIndex>>[src]

Node's nodeValue.

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

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

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

Attributes of an Element node. Flatten name, value pairs.

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

Only set for textarea elements, contains the text value.

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

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

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

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

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

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

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

The index of the document in the list of the snapshot documents.

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

Type of a pseudo element node.

pub fn is_clickable(&self) -> Option<&RareBooleanData>[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 current_source_url(&self) -> Option<&RareStringData>[src]

The selected url for nodes with a srcset attribute.

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

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

Trait Implementations

impl Clone for NodeTreeSnapshot[src]

impl Debug for NodeTreeSnapshot[src]

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

impl Serialize for NodeTreeSnapshot[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.