pub struct ResourceAnalysis {
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 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.
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§fn clone(&self) -> ResourceAnalysis
fn clone(&self) -> ResourceAnalysis
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 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