pub struct NodeTreeSnapshot {Show 17 fields
pub parent_index: Option<Vec<i64>>,
pub node_type: Option<Vec<i64>>,
pub shadow_root_type: Option<RareStringData>,
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 pseudo_identifier: 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.
shadow_root_type: Option<RareStringData>
Type of the shadow root the Node
is in. String values are equal to the ShadowRootType
enum.
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.
pseudo_identifier: Option<RareStringData>
Pseudo element identifier for this node. Only present if there is a valid pseudoType.
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§
Source§impl NodeTreeSnapshot
impl NodeTreeSnapshot
pub fn builder() -> NodeTreeSnapshotBuilder
Source§impl NodeTreeSnapshot
impl NodeTreeSnapshot
pub const IDENTIFIER: &'static str = "DOMSnapshot.NodeTreeSnapshot"
Trait Implementations§
Source§impl Clone for NodeTreeSnapshot
impl Clone for NodeTreeSnapshot
Source§fn clone(&self) -> NodeTreeSnapshot
fn clone(&self) -> NodeTreeSnapshot
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for NodeTreeSnapshot
impl Debug for NodeTreeSnapshot
Source§impl Default for NodeTreeSnapshot
impl Default for NodeTreeSnapshot
Source§fn default() -> NodeTreeSnapshot
fn default() -> NodeTreeSnapshot
Source§impl<'de> Deserialize<'de> for NodeTreeSnapshot
impl<'de> Deserialize<'de> for NodeTreeSnapshot
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<NodeTreeSnapshot, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<NodeTreeSnapshot, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for NodeTreeSnapshot
impl PartialEq for NodeTreeSnapshot
Source§impl Serialize for NodeTreeSnapshot
impl Serialize for NodeTreeSnapshot
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for NodeTreeSnapshot
Auto Trait Implementations§
impl Freeze for NodeTreeSnapshot
impl RefUnwindSafe for NodeTreeSnapshot
impl Send for NodeTreeSnapshot
impl Sync for NodeTreeSnapshot
impl Unpin for NodeTreeSnapshot
impl UnwindSafe for NodeTreeSnapshot
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more