pub struct DocumentSnapshot {Show 15 fields
pub documentURL: StringIndex,
pub title: StringIndex,
pub baseURL: StringIndex,
pub contentLanguage: StringIndex,
pub encodingName: StringIndex,
pub publicId: StringIndex,
pub systemId: StringIndex,
pub frameId: StringIndex,
pub nodes: NodeTreeSnapshot,
pub layout: LayoutTreeSnapshot,
pub textBoxes: TextBoxSnapshot,
pub scrollOffsetX: Option<f64>,
pub scrollOffsetY: Option<f64>,
pub contentWidth: Option<f64>,
pub contentHeight: Option<f64>,
}Expand description
Document snapshot.
Fields§
§documentURL: StringIndexDocument URL that ‘Document’ or ‘FrameOwner’ node points to.
title: StringIndexDocument title.
baseURL: StringIndexBase URL that ‘Document’ or ‘FrameOwner’ node uses for URL completion.
contentLanguage: StringIndexContains the document’s content language.
encodingName: StringIndexContains the document’s character set encoding.
publicId: StringIndex‘DocumentType’ node’s publicId.
systemId: StringIndex‘DocumentType’ node’s systemId.
frameId: 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.
textBoxes: TextBoxSnapshotThe post-layout inline text nodes.
scrollOffsetX: Option<f64>Horizontal scroll offset.
scrollOffsetY: Option<f64>Vertical scroll offset.
contentWidth: Option<f64>Document content width.
contentHeight: Option<f64>Document content height.
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 Default for DocumentSnapshot
impl Default for DocumentSnapshot
Source§fn default() -> DocumentSnapshot
fn default() -> DocumentSnapshot
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DocumentSnapshot
impl<'de> Deserialize<'de> for DocumentSnapshot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DocumentSnapshot
impl RefUnwindSafe for DocumentSnapshot
impl Send for DocumentSnapshot
impl Sync for DocumentSnapshot
impl Unpin for DocumentSnapshot
impl UnsafeUnpin 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