pub struct NodeTreeSnapshotBuilder { /* private fields */ }experimental and DOMSnapshot and CSS and DOM and DOMDebugger and Page only.Implementations§
Source§impl NodeTreeSnapshotBuilder
impl NodeTreeSnapshotBuilder
Sourcepub fn parent_index(&mut self, v: Vec<u32>) -> &mut Self
pub fn parent_index(&mut self, v: Vec<u32>) -> &mut Self
Parent node index.
Sourcepub fn node_name(&mut self, v: Vec<StringIndex>) -> &mut Self
pub fn node_name(&mut self, v: Vec<StringIndex>) -> &mut Self
Node’s nodeName.
Sourcepub fn node_value(&mut self, v: Vec<StringIndex>) -> &mut Self
pub fn node_value(&mut self, v: Vec<StringIndex>) -> &mut Self
Node’s nodeValue.
Sourcepub fn backend_node_id(&mut self, v: Vec<BackendNodeId>) -> &mut Self
pub fn backend_node_id(&mut self, v: Vec<BackendNodeId>) -> &mut Self
Node’s id, corresponds to DOM.Node.backendNodeId.
Sourcepub fn attributes(&mut self, v: Vec<ArrayOfStrings>) -> &mut Self
pub fn attributes(&mut self, v: Vec<ArrayOfStrings>) -> &mut Self
Attributes of an Element node. Flatten name, value pairs.
Sourcepub fn text_value(&mut self, v: RareStringData) -> &mut Self
pub fn text_value(&mut self, v: RareStringData) -> &mut Self
Only set for textarea elements, contains the text value.
Sourcepub fn input_value(&mut self, v: RareStringData) -> &mut Self
pub fn input_value(&mut self, v: RareStringData) -> &mut Self
Only set for input elements, contains the input’s associated text value.
Sourcepub fn input_checked(&mut self, v: RareBooleanData) -> &mut Self
pub fn input_checked(&mut self, v: RareBooleanData) -> &mut Self
Only set for radio and checkbox input elements, indicates if the element has been checked
Sourcepub fn option_selected(&mut self, v: RareBooleanData) -> &mut Self
pub fn option_selected(&mut self, v: RareBooleanData) -> &mut Self
Only set for option elements, indicates if the element has been selected
Sourcepub fn content_document_index(&mut self, v: RareIntegerData) -> &mut Self
pub fn content_document_index(&mut self, v: RareIntegerData) -> &mut Self
The index of the document in the list of the snapshot documents.
Sourcepub fn pseudo_type(&mut self, v: RareStringData) -> &mut Self
pub fn pseudo_type(&mut self, v: RareStringData) -> &mut Self
Type of a pseudo element node.
Sourcepub fn is_clickable(&mut self, v: RareBooleanData) -> &mut Self
pub fn is_clickable(&mut self, v: RareBooleanData) -> &mut Self
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.
Sourcepub fn current_source_url(&mut self, v: RareStringData) -> &mut Self
pub fn current_source_url(&mut self, v: RareStringData) -> &mut Self
The selected url for nodes with a srcset attribute.
Sourcepub fn origin_url(&mut self, v: RareStringData) -> &mut Self
pub fn origin_url(&mut self, v: RareStringData) -> &mut Self
The url of the script (if any) that generates this node.
pub fn build(&mut self) -> Result<NodeTreeSnapshot, &'static str>
Trait Implementations§
Source§impl Clone for NodeTreeSnapshotBuilder
impl Clone for NodeTreeSnapshotBuilder
Source§fn clone(&self) -> NodeTreeSnapshotBuilder
fn clone(&self) -> NodeTreeSnapshotBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more