pub struct FrameSnapshotEvent {Show 13 fields
pub call_id: String,
pub snapshot_name: String,
pub page_id: String,
pub frame_id: String,
pub frame_url: String,
pub doctype: String,
pub html: String,
pub viewport: Option<Viewport>,
pub timestamp: f64,
pub wall_time: f64,
pub collection_time: f64,
pub is_main_frame: bool,
pub resource_overrides: Vec<ResourceOverride>,
}Expand description
Per-frame DOM snapshot. Includes the full HTML payload — these can be sizeable; callers iterating on snapshots for many frames should expect the per-event size to dominate the overall trace memory budget.
Fields§
§call_id: String§snapshot_name: String§page_id: String§frame_id: String§frame_url: String§doctype: String§html: String§viewport: Option<Viewport>§timestamp: f64§wall_time: f64§collection_time: f64§is_main_frame: bool§resource_overrides: Vec<ResourceOverride>Trait Implementations§
Source§impl Clone for FrameSnapshotEvent
impl Clone for FrameSnapshotEvent
Source§fn clone(&self) -> FrameSnapshotEvent
fn clone(&self) -> FrameSnapshotEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FrameSnapshotEvent
impl Debug for FrameSnapshotEvent
Source§impl<'de> Deserialize<'de> for FrameSnapshotEvent
impl<'de> Deserialize<'de> for FrameSnapshotEvent
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 FrameSnapshotEvent
impl RefUnwindSafe for FrameSnapshotEvent
impl Send for FrameSnapshotEvent
impl Sync for FrameSnapshotEvent
impl Unpin for FrameSnapshotEvent
impl UnsafeUnpin for FrameSnapshotEvent
impl UnwindSafe for FrameSnapshotEvent
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