pub struct DocumentSnapshot {Show 15 fields
pub document_url: StringIndex,
pub title: StringIndex,
pub base_url: StringIndex,
pub content_language: StringIndex,
pub encoding_name: StringIndex,
pub public_id: StringIndex,
pub system_id: StringIndex,
pub frame_id: StringIndex,
pub nodes: NodeTreeSnapshot,
pub layout: LayoutTreeSnapshot,
pub text_boxes: TextBoxSnapshot,
pub scroll_offset_x: Option<f64>,
pub scroll_offset_y: Option<f64>,
pub content_width: Option<f64>,
pub content_height: Option<f64>,
}Expand description
Document snapshot. DocumentSnapshot
Fields§
§document_url: StringIndexDocument URL that Document or FrameOwner node points to.
title: StringIndexDocument title.
base_url: StringIndexBase URL that Document or FrameOwner node uses for URL completion.
content_language: StringIndexContains the document’s content language.
encoding_name: StringIndexContains the document’s character set encoding.
public_id: StringIndexDocumentType node’s publicId.
system_id: StringIndexDocumentType node’s systemId.
frame_id: StringIndexFrame ID for frame owner elements and also for the document node.
nodes: NodeTreeSnapshotA table with dom nodes.
layout: LayoutTreeSnapshotThe nodes in the layout tree.
text_boxes: TextBoxSnapshotThe post-layout inline text nodes.
scroll_offset_x: Option<f64>Horizontal scroll offset.
scroll_offset_y: Option<f64>Vertical scroll offset.
content_width: Option<f64>Document content width.
content_height: Option<f64>Document content height.
Implementations§
Source§impl DocumentSnapshot
impl DocumentSnapshot
pub fn builder() -> DocumentSnapshotBuilder
Source§impl DocumentSnapshot
impl DocumentSnapshot
pub const IDENTIFIER: &'static str = "DOMSnapshot.DocumentSnapshot"
Trait Implementations§
Source§impl Clone for DocumentSnapshot
impl Clone for DocumentSnapshot
Source§fn clone(&self) -> DocumentSnapshot
fn clone(&self) -> DocumentSnapshot
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DocumentSnapshot
impl Debug for DocumentSnapshot
Source§impl<'de> Deserialize<'de> for DocumentSnapshot
impl<'de> Deserialize<'de> for DocumentSnapshot
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DocumentSnapshot, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DocumentSnapshot, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DocumentSnapshot
impl PartialEq for DocumentSnapshot
Source§impl Serialize for DocumentSnapshot
impl Serialize for DocumentSnapshot
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,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for DocumentSnapshot
Auto Trait Implementations§
impl Freeze for DocumentSnapshot
impl RefUnwindSafe for DocumentSnapshot
impl Send for DocumentSnapshot
impl Sync for DocumentSnapshot
impl Unpin for DocumentSnapshot
impl UnwindSafe for DocumentSnapshot
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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