pub struct ResourceAnalysis {Show 15 fields
pub resource: Resource,
pub sha256: Option<String>,
pub image: Option<ImageInfo>,
pub status: String,
pub issues: Vec<String>,
pub candidates: Vec<ImageCandidate>,
pub smallest_candidate: Option<usize>,
pub original_preview: Option<PathBuf>,
pub original_artifact: Option<PathBuf>,
pub media: Option<MediaInfo>,
pub archive: Option<ArchiveInfo>,
pub vap: Option<VapInfo>,
pub pag: Option<PagInfo>,
pub animation: Option<AnimationInfo>,
pub fingerprint: Option<Fingerprint>,
}Fields§
§resource: Resource§sha256: Option<String>§image: Option<ImageInfo>§status: Stringcandidates_available, inspected, excluded, unsupported, failed
or not_analyzed (analysis was cancelled first).
issues: Vec<String>§candidates: Vec<ImageCandidate>§smallest_candidate: Option<usize>A size winner among candidates that passed every policy check.
original_preview: Option<PathBuf>§original_artifact: Option<PathBuf>§media: Option<MediaInfo>Codec, duration and bitrate of audio/video files, when ffprobe is installed.
archive: Option<ArchiveInfo>Bounded ZIP contents; entries are never extracted into the project.
vap: Option<VapInfo>§pag: Option<PagInfo>§animation: Option<AnimationInfo>Canvas, timing and size of an animation, when it could be parsed.
fingerprint: Option<Fingerprint>Scale-invariant fingerprint used to find duplicate and resized images.
Trait Implementations§
Source§impl Clone for ResourceAnalysis
impl Clone for ResourceAnalysis
Source§impl Debug for ResourceAnalysis
impl Debug for ResourceAnalysis
Source§impl<'de> Deserialize<'de> for ResourceAnalysis
impl<'de> Deserialize<'de> for ResourceAnalysis
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 ResourceAnalysis
impl RefUnwindSafe for ResourceAnalysis
impl Send for ResourceAnalysis
impl Sync for ResourceAnalysis
impl Unpin for ResourceAnalysis
impl UnsafeUnpin for ResourceAnalysis
impl UnwindSafe for ResourceAnalysis
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