pub struct ViewportDef {
pub name: String,
pub width: u32,
pub height: u32,
}Expand description
One named viewport size in a matrix.
Fields§
§name: StringHuman-readable variant name (appended to test names, e.g.
— mobile).
width: u32Browser viewport width in pixels.
height: u32Browser viewport height in pixels.
Trait Implementations§
Source§impl Clone for ViewportDef
impl Clone for ViewportDef
Source§impl Debug for ViewportDef
impl Debug for ViewportDef
Source§impl<'de> Deserialize<'de> for ViewportDef
impl<'de> Deserialize<'de> for ViewportDef
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 ViewportDef
impl RefUnwindSafe for ViewportDef
impl Send for ViewportDef
impl Sync for ViewportDef
impl Unpin for ViewportDef
impl UnsafeUnpin for ViewportDef
impl UnwindSafe for ViewportDef
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