#[non_exhaustive]pub struct RecordVideo {
pub dir: String,
pub size: Option<Viewport>,
}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.
Implementations§
Trait Implementations§
Source§impl Clone for RecordVideo
impl Clone for RecordVideo
Source§fn clone(&self) -> RecordVideo
fn clone(&self) -> RecordVideo
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 RecordVideo
impl Debug for RecordVideo
Source§impl Default for RecordVideo
impl Default for RecordVideo
Source§fn default() -> RecordVideo
fn default() -> RecordVideo
Returns the “default value” for a type. Read more
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