pub struct Metadata {
pub device: Option<String>,
pub os: Option<String>,
pub os_version: Option<String>,
pub os_appearance: Option<String>,
pub test_name: Option<String>,
pub snapshot_name: Option<String>,
}Expand description
Represents the metadata of a snapshot.
Fields§
§device: Option<String>This is the device type. For example: “iPhone Xs”.
os: Option<String>This is the operating system. For example: “iOS” or “Android”.
os_version: Option<String>This is the version of the operating system. For example: “12.0”. This version does not have to be semver compatible.
os_appearance: Option<String>This is the appearance of the operating system. For example: “dark” or “light”.
test_name: Option<String>This is the name of the test itself.
snapshot_name: Option<String>This is the name of the snapshot.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Metadata
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
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