pub struct Capture {
pub device_id: String,
pub expected: (u32, u32),
pub actual: (u32, u32),
pub sha256: String,
pub bytes: usize,
pub exact: bool,
pub environment: Option<Environment>,
}Expand description
The result of one capture.
Fields§
§device_id: String§expected: (u32, u32)What the store requires.
actual: (u32, u32)What the browser actually produced.
sha256: StringContent address of the image bytes.
bytes: usize§exact: boolWhether actual == expected. A false here is a hard failure, not a
warning: an off-size asset is rejected at upload.
environment: Option<Environment>What the page reported about itself. None if the probe failed.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Capture
impl<'de> Deserialize<'de> for Capture
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 Capture
impl RefUnwindSafe for Capture
impl Send for Capture
impl Sync for Capture
impl Unpin for Capture
impl UnsafeUnpin for Capture
impl UnwindSafe for Capture
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