pub struct DocumentSnapshotBuilder { /* private fields */ }Available on crate features
experimental and DOMSnapshot and CSS and DOM and DOMDebugger and Page only.Implementations§
Source§impl DocumentSnapshotBuilder
impl DocumentSnapshotBuilder
Sourcepub fn document_url(&mut self, v: StringIndex) -> &mut Self
pub fn document_url(&mut self, v: StringIndex) -> &mut Self
Document URL that Document or FrameOwner node points to.
Sourcepub fn title(&mut self, v: StringIndex) -> &mut Self
pub fn title(&mut self, v: StringIndex) -> &mut Self
Document title.
Sourcepub fn base_url(&mut self, v: StringIndex) -> &mut Self
pub fn base_url(&mut self, v: StringIndex) -> &mut Self
Base URL that Document or FrameOwner node uses for URL completion.
Sourcepub fn content_language(&mut self, v: StringIndex) -> &mut Self
pub fn content_language(&mut self, v: StringIndex) -> &mut Self
Contains the document’s content language.
Sourcepub fn encoding_name(&mut self, v: StringIndex) -> &mut Self
pub fn encoding_name(&mut self, v: StringIndex) -> &mut Self
Contains the document’s character set encoding.
Sourcepub fn public_id(&mut self, v: StringIndex) -> &mut Self
pub fn public_id(&mut self, v: StringIndex) -> &mut Self
DocumentType node’s publicId.
Sourcepub fn system_id(&mut self, v: StringIndex) -> &mut Self
pub fn system_id(&mut self, v: StringIndex) -> &mut Self
DocumentType node’s systemId.
Sourcepub fn frame_id(&mut self, v: StringIndex) -> &mut Self
pub fn frame_id(&mut self, v: StringIndex) -> &mut Self
Frame ID for frame owner elements and also for the document node.
Sourcepub fn nodes(&mut self, v: NodeTreeSnapshot) -> &mut Self
pub fn nodes(&mut self, v: NodeTreeSnapshot) -> &mut Self
A table with dom nodes.
Sourcepub fn layout(&mut self, v: LayoutTreeSnapshot) -> &mut Self
pub fn layout(&mut self, v: LayoutTreeSnapshot) -> &mut Self
The nodes in the layout tree.
Sourcepub fn text_boxes(&mut self, v: TextBoxSnapshot) -> &mut Self
pub fn text_boxes(&mut self, v: TextBoxSnapshot) -> &mut Self
The post-layout inline text nodes.
Sourcepub fn scroll_offset_x(&mut self, v: f64) -> &mut Self
pub fn scroll_offset_x(&mut self, v: f64) -> &mut Self
Horizontal scroll offset.
Sourcepub fn scroll_offset_y(&mut self, v: f64) -> &mut Self
pub fn scroll_offset_y(&mut self, v: f64) -> &mut Self
Vertical scroll offset.
Sourcepub fn content_width(&mut self, v: f64) -> &mut Self
pub fn content_width(&mut self, v: f64) -> &mut Self
Document content width.
Sourcepub fn content_height(&mut self, v: f64) -> &mut Self
pub fn content_height(&mut self, v: f64) -> &mut Self
Document content height.
pub fn build(&mut self) -> Result<DocumentSnapshot, &'static str>
Trait Implementations§
Source§impl Clone for DocumentSnapshotBuilder
impl Clone for DocumentSnapshotBuilder
Source§fn clone(&self) -> DocumentSnapshotBuilder
fn clone(&self) -> DocumentSnapshotBuilder
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 DocumentSnapshotBuilder
impl Debug for DocumentSnapshotBuilder
Auto Trait Implementations§
impl Freeze for DocumentSnapshotBuilder
impl RefUnwindSafe for DocumentSnapshotBuilder
impl Send for DocumentSnapshotBuilder
impl Sync for DocumentSnapshotBuilder
impl Unpin for DocumentSnapshotBuilder
impl UnwindSafe for DocumentSnapshotBuilder
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