Struct chrome_remote_interface_model::dom_snapshot::NodeTreeSnapshotBuilder[][src]

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

Implementations

impl NodeTreeSnapshotBuilder[src]

pub fn parent_index(&mut self, v: Vec<u32>) -> &mut Self[src]

Parent node index.

pub fn node_type(&mut self, v: Vec<u32>) -> &mut Self[src]

Node's nodeType.

pub fn node_name(&mut self, v: Vec<StringIndex>) -> &mut Self[src]

Node's nodeName.

pub fn node_value(&mut self, v: Vec<StringIndex>) -> &mut Self[src]

Node's nodeValue.

pub fn backend_node_id(&mut self, v: Vec<BackendNodeId>) -> &mut Self[src]

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

pub fn attributes(&mut self, v: Vec<ArrayOfStrings>) -> &mut Self[src]

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

pub fn text_value(&mut self, v: RareStringData) -> &mut Self[src]

Only set for textarea elements, contains the text value.

pub fn input_value(&mut self, v: RareStringData) -> &mut Self[src]

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

pub fn input_checked(&mut self, v: RareBooleanData) -> &mut Self[src]

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

pub fn option_selected(&mut self, v: RareBooleanData) -> &mut Self[src]

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

pub fn content_document_index(&mut self, v: RareIntegerData) -> &mut Self[src]

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

pub fn pseudo_type(&mut self, v: RareStringData) -> &mut Self[src]

Type of a pseudo element node.

pub fn is_clickable(&mut self, v: RareBooleanData) -> &mut Self[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(&mut self, v: RareStringData) -> &mut Self[src]

The selected url for nodes with a srcset attribute.

pub fn origin_url(&mut self, v: RareStringData) -> &mut Self[src]

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

pub fn build(&mut self) -> Result<NodeTreeSnapshot, &'static str>[src]

Trait Implementations

impl Clone for NodeTreeSnapshotBuilder[src]

impl Debug for NodeTreeSnapshotBuilder[src]

impl Default for NodeTreeSnapshotBuilder[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> 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.