pub struct Stored {
pub original: PathBuf,
pub working: PathBuf,
pub bytes: usize,
pub working_bytes: usize,
pub size: Option<(u32, u32)>,
pub resized: bool,
}Expand description
A picture kept on disk.
Fields§
§original: PathBufThe file exactly as uploaded.
working: PathBufWhat the model is shown — the original itself when no shrink was needed.
bytes: usizeBytes in the original.
working_bytes: usizeBytes in the working copy.
size: Option<(u32, u32)>The original’s pixel size, when the header could be read.
resized: boolWhether a second file was derived.
Implementations§
Trait Implementations§
impl Eq for Stored
impl StructuralPartialEq for Stored
Auto Trait Implementations§
impl Forget for Stored
impl Freeze for Stored
impl Move for Stored
impl RefUnwindSafe for Stored
impl Send for Storedwhere
RawVecInner: Send,
impl Sync for Storedwhere
RawVecInner: Sync,
impl Unpin for Stored
impl UnsafeUnpin for Stored
impl UnwindSafe for Storedwhere
RawVecInner: UnwindSafe,
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.