pub struct Recording {
pub version: String,
pub name: String,
pub url: String,
pub user_agent: String,
pub viewport: Viewport,
pub start_time: u64,
pub duration_ms: u64,
pub events: Vec<RecordedEvent>,
pub metadata: RecordingMetadata,
}Expand description
A recorded test session
Fields§
§version: StringRecording version
name: StringRecording name
url: StringURL where recording was made
user_agent: StringBrowser user agent
viewport: ViewportViewport dimensions
start_time: u64Start timestamp (Unix milliseconds)
duration_ms: u64Total duration in milliseconds
events: Vec<RecordedEvent>Recorded events
metadata: RecordingMetadataMetadata
Implementations§
Source§impl Recording
impl Recording
Sourcepub fn add_event(&mut self, event: RecordedEvent)
pub fn add_event(&mut self, event: RecordedEvent)
Add an event to the recording
Sourcepub fn event_count(&self) -> usize
pub fn event_count(&self) -> usize
Get event count
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Recording
impl<'de> Deserialize<'de> for Recording
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 Recording
impl RefUnwindSafe for Recording
impl Send for Recording
impl Sync for Recording
impl Unpin for Recording
impl UnsafeUnpin for Recording
impl UnwindSafe for Recording
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more