pub struct CachedImage {
pub url: String,
pub path: PathBuf,
pub hash: String,
pub bytes: u64,
pub width: Option<u32>,
pub height: Option<u32>,
pub content_type: String,
pub cached: bool,
}Expand description
A cached image file.
Fields§
§url: String§path: PathBuf§hash: String§bytes: u64§width: Option<u32>§height: Option<u32>§content_type: String§cached: boolTrue if served from the store without downloading.
Trait Implementations§
Source§impl Clone for CachedImage
impl Clone for CachedImage
Source§impl Debug for CachedImage
impl Debug for CachedImage
impl Eq for CachedImage
Source§impl PartialEq for CachedImage
impl PartialEq for CachedImage
Source§impl Serialize for CachedImage
impl Serialize for CachedImage
impl StructuralPartialEq for CachedImage
Auto Trait Implementations§
impl Freeze for CachedImage
impl RefUnwindSafe for CachedImage
impl Send for CachedImage
impl Sync for CachedImage
impl Unpin for CachedImage
impl UnsafeUnpin for CachedImage
impl UnwindSafe for CachedImage
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