pub struct MediaEmulation {
pub media_type: Option<String>,
pub features: Vec<MediaFeatureOverride>,
}Expand description
Media emulation configuration.
Fields§
§media_type: Option<String>§features: Vec<MediaFeatureOverride>Implementations§
Source§impl MediaEmulation
impl MediaEmulation
pub fn with_media_type<T: Into<String>>(self, media: T) -> Self
pub fn with_feature(self, feature: MediaFeatureOverride) -> Self
Trait Implementations§
Source§impl Clone for MediaEmulation
impl Clone for MediaEmulation
Source§fn clone(&self) -> MediaEmulation
fn clone(&self) -> MediaEmulation
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 MediaEmulation
impl Debug for MediaEmulation
Source§impl Default for MediaEmulation
impl Default for MediaEmulation
Source§fn default() -> MediaEmulation
fn default() -> MediaEmulation
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MediaEmulation
impl RefUnwindSafe for MediaEmulation
impl Send for MediaEmulation
impl Sync for MediaEmulation
impl Unpin for MediaEmulation
impl UnwindSafe for MediaEmulation
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