pub enum ForcedColors {
Active,
None_,
NoOverride,
}Expand description
Forced colors preference for page.emulate_media().
See: https://playwright.dev/docs/api/class-page#page-emulate-media
Variants§
Active
Emulate active forced colors
None_
Emulate no forced colors
NoOverride
Reset forced colors to browser default
Trait Implementations§
Source§impl Clone for ForcedColors
impl Clone for ForcedColors
Source§fn clone(&self) -> ForcedColors
fn clone(&self) -> ForcedColors
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 ForcedColors
impl Debug for ForcedColors
Source§impl PartialEq for ForcedColors
impl PartialEq for ForcedColors
Source§impl Serialize for ForcedColors
impl Serialize for ForcedColors
impl Copy for ForcedColors
impl Eq for ForcedColors
impl StructuralPartialEq for ForcedColors
Auto Trait Implementations§
impl Freeze for ForcedColors
impl RefUnwindSafe for ForcedColors
impl Send for ForcedColors
impl Sync for ForcedColors
impl Unpin for ForcedColors
impl UnsafeUnpin for ForcedColors
impl UnwindSafe for ForcedColors
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