pub struct AdMetrics {
pub viewport_ad_density_by_area: i64,
pub average_viewport_ad_density_by_area: f64,
pub viewport_ad_count: i64,
pub average_viewport_ad_count: f64,
pub total_ad_cpu_time: f64,
pub total_ad_network_bytes: f64,
pub update_ad_frames: Vec<AdFrameData>,
pub remove_ad_frames: Vec<FrameId>,
}Expand description
Ad metrics for a page.
Fields§
§viewport_ad_density_by_area: i64The viewport ad density by area, represented as a percentage (an integer between 0 and 100).
average_viewport_ad_density_by_area: f64The time-weighted average of the viewport ad density by area, measured across the duration of the page.
viewport_ad_count: i64The number of ads currently visible within the viewport.
average_viewport_ad_count: f64The time-weighted average of the viewport ad count, measured across the duration of the page.
total_ad_cpu_time: f64The total ad CPU usage, in milliseconds.
total_ad_network_bytes: f64The total ad network bytes.
update_ad_frames: Vec<AdFrameData>The list of ad frames that have been updated since the last event.
remove_ad_frames: Vec<FrameId>The list of ad frame IDs that have been removed since the last event.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AdMetrics
impl<'de> Deserialize<'de> for AdMetrics
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
impl StructuralPartialEq for AdMetrics
Auto Trait Implementations§
impl Forget for AdMetrics
impl Freeze for AdMetrics
impl RefUnwindSafe for AdMetrics
impl Send for AdMetrics
impl Sync for AdMetrics
impl Unpin for AdMetrics
impl UnsafeUnpin for AdMetrics
impl UnwindSafe for AdMetrics
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