#[non_exhaustive]pub struct RecordVideo {
pub dir: String,
pub size: Option<Viewport>,
pub fps: Option<u32>,
pub show_actions: Option<ShowActionsOptions>,
}Expand description
Options for recording video.
See: https://playwright.dev/docs/api/class-browser#browser-new-context-option-record-video
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.dir: StringPath to the directory to put videos into.
size: Option<Viewport>Optional dimensions of the recorded videos.
fps: Option<u32>Frame rate of the recorded videos. Must be positive. Firefox and WebKit capture at most 25 frames per second.
show_actions: Option<ShowActionsOptions>Decorate each action in the recorded videos, as
Screencast::show_actions
does for a screencast.
Implementations§
Source§impl RecordVideo
impl RecordVideo
Sourcepub fn show_actions(self, show_actions: ShowActionsOptions) -> Self
pub fn show_actions(self, show_actions: ShowActionsOptions) -> Self
Decorate each action in the recorded videos.
Trait Implementations§
Source§impl Clone for RecordVideo
impl Clone for RecordVideo
Source§impl Debug for RecordVideo
impl Debug for RecordVideo
Source§impl Default for RecordVideo
impl Default for RecordVideo
Auto Trait Implementations§
impl Freeze for RecordVideo
impl RefUnwindSafe for RecordVideo
impl Send for RecordVideo
impl Sync for RecordVideo
impl Unpin for RecordVideo
impl UnsafeUnpin for RecordVideo
impl UnwindSafe for RecordVideo
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