pub struct ImageCandidate {Show 13 fields
pub format: String,
pub quality: Option<u8>,
pub lossy: bool,
pub bytes: u64,
pub savings_bytes: u64,
pub valid: bool,
pub rejection: Option<String>,
pub difference: Option<ImageDifference>,
pub artifact: Option<PathBuf>,
pub preview: Option<PathBuf>,
pub sha256: Option<String>,
pub warnings: Vec<String>,
pub notes: Vec<String>,
}Fields§
§format: String§quality: Option<u8>§lossy: bool§bytes: u64§savings_bytes: u64§valid: bool§rejection: Option<String>§difference: Option<ImageDifference>§artifact: Option<PathBuf>§preview: Option<PathBuf>§sha256: Option<String>SHA-256 of the artifact, checked again before it is applied.
warnings: Vec<String>Every visual policy threshold this candidate misses. rejection holds
the first one; approval must cover all of them.
notes: Vec<String>Facts the reviewer should know, e.g. metadata a conversion does not carry.
Trait Implementations§
Source§impl Clone for ImageCandidate
impl Clone for ImageCandidate
Source§fn clone(&self) -> ImageCandidate
fn clone(&self) -> ImageCandidate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ImageCandidate
impl Debug for ImageCandidate
Source§impl<'de> Deserialize<'de> for ImageCandidate
impl<'de> Deserialize<'de> for ImageCandidate
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 ImageCandidate
impl RefUnwindSafe for ImageCandidate
impl Send for ImageCandidate
impl Sync for ImageCandidate
impl Unpin for ImageCandidate
impl UnsafeUnpin for ImageCandidate
impl UnwindSafe for ImageCandidate
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more