#[non_exhaustive]pub struct ProbeReport {
pub format: Format,
pub width: u32,
pub height: u32,
pub timing: Timing,
pub loop_count: Option<u32>,
pub items: Vec<String>,
pub item: Option<String>,
pub color: Option<LinearColor>,
pub diagnostics: Vec<Diagnostic>,
}Expand description
What probing a file finds.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.format: FormatThe format.
width: u32The canvas width, in pixels.
height: u32The canvas height, in pixels.
timing: TimingWhen its frames are shown.
loop_count: Option<u32>How many times the file asks to be played, 0 for ever (a GIF’s
repetitions plus its first play; once without a loop extension);
None when it does not say. The clip decides; this is a hint for
import.
items: Vec<String>The items a package holds, such as a dotLottie’s animations. Empty for a file of one item.
item: Option<String>The item of a package the report describes: the one a source opened
shows, or for a probe the first that opens (the others that do not
are reported). None for a file of one item.
color: Option<LinearColor>For linear-light media, what its RGB is; None for sRGB media.
diagnostics: Vec<Diagnostic>What the user should know.
Trait Implementations§
Source§impl Clone for ProbeReport
impl Clone for ProbeReport
Source§impl Debug for ProbeReport
impl Debug for ProbeReport
Source§impl PartialEq for ProbeReport
impl PartialEq for ProbeReport
Source§impl Serialize for ProbeReport
impl Serialize for ProbeReport
impl StructuralPartialEq for ProbeReport
Auto Trait Implementations§
impl Freeze for ProbeReport
impl RefUnwindSafe for ProbeReport
impl Send for ProbeReport
impl Sync for ProbeReport
impl Unpin for ProbeReport
impl UnsafeUnpin for ProbeReport
impl UnwindSafe for ProbeReport
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