pub struct TimelineEvent {
pub frameId: FrameId,
pub type_: String,
pub name: String,
pub time: TimeSinceEpoch,
pub duration: Option<f64>,
pub lcpDetails: Option<LargestContentfulPaint>,
pub layoutShiftDetails: Option<LayoutShift>,
}Fields§
§frameId: FrameIdIdentifies the frame that this event is related to. Empty for non-frame targets.
type_: StringThe event type, as specified in https://w3c.github.io/performance-timeline/#dom-performanceentry-entrytype This determines which of the optional “details” fields is present.
name: StringName may be empty depending on the type.
time: TimeSinceEpochTime in seconds since Epoch, monotonically increasing within document lifetime.
duration: Option<f64>Event duration, if applicable.
lcpDetails: Option<LargestContentfulPaint>§layoutShiftDetails: Option<LayoutShift>Trait Implementations§
Source§impl Clone for TimelineEvent
impl Clone for TimelineEvent
Source§fn clone(&self) -> TimelineEvent
fn clone(&self) -> TimelineEvent
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 TimelineEvent
impl Debug for TimelineEvent
Source§impl Default for TimelineEvent
impl Default for TimelineEvent
Source§fn default() -> TimelineEvent
fn default() -> TimelineEvent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TimelineEvent
impl<'de> Deserialize<'de> for TimelineEvent
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 TimelineEvent
impl RefUnwindSafe for TimelineEvent
impl Send for TimelineEvent
impl Sync for TimelineEvent
impl Unpin for TimelineEvent
impl UnsafeUnpin for TimelineEvent
impl UnwindSafe for TimelineEvent
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