Struct chromiumoxide_cdp::cdp::browser_protocol::dom_snapshot::NodeTreeSnapshot[][src]

pub struct NodeTreeSnapshot {
Show fields pub parent_index: Option<Vec<i64>>, pub node_type: Option<Vec<i64>>, pub node_name: Option<Vec<StringIndex>>, pub node_value: Option<Vec<StringIndex>>, pub backend_node_id: Option<Vec<BackendNodeId>>, pub attributes: Option<Vec<ArrayOfStrings>>, pub text_value: Option<RareStringData>, pub input_value: Option<RareStringData>, pub input_checked: Option<RareBooleanData>, pub option_selected: Option<RareBooleanData>, pub content_document_index: Option<RareIntegerData>, pub pseudo_type: Option<RareStringData>, pub is_clickable: Option<RareBooleanData>, pub current_source_url: Option<RareStringData>, pub origin_url: Option<RareStringData>,
}
Expand description

Table containing nodes. NodeTreeSnapshot

Fields

parent_index: Option<Vec<i64>>

Parent node index.

node_type: Option<Vec<i64>>

Node’s nodeType.

node_name: Option<Vec<StringIndex>>

Node’s nodeName.

node_value: Option<Vec<StringIndex>>

Node’s nodeValue.

backend_node_id: Option<Vec<BackendNodeId>>

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

attributes: Option<Vec<ArrayOfStrings>>

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

text_value: Option<RareStringData>

Only set for textarea elements, contains the text value.

input_value: Option<RareStringData>

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

input_checked: Option<RareBooleanData>

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

option_selected: Option<RareBooleanData>

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

content_document_index: Option<RareIntegerData>

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

pseudo_type: Option<RareStringData>

Type of a pseudo element node.

is_clickable: Option<RareBooleanData>

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.

current_source_url: Option<RareStringData>

The selected url for nodes with a srcset attribute.

origin_url: Option<RareStringData>

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

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

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

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.