pub struct NewCachedAsset {
pub id: String,
pub filename: String,
pub mime_type: Option<String>,
pub size: u64,
pub local_path: PathBuf,
pub context: AssetContext,
pub checksum_sha256: String,
pub remote_url: Option<String>,
}Expand description
Parameters accepted by CachedAsset::new.
Introduced to keep the constructor below the clippy
too_many_arguments lint threshold.
Fields§
§id: StringStable identifier (UUID or provider id).
filename: String§mime_type: Option<String>MIME type if known.
size: u64§local_path: PathBufPath relative to the cache root.
context: AssetContextContext the asset belongs to.
checksum_sha256: StringSHA-256 checksum in hex.
remote_url: Option<String>Remote URL at the provider if any.
Trait Implementations§
Source§impl Clone for NewCachedAsset
impl Clone for NewCachedAsset
Source§fn clone(&self) -> NewCachedAsset
fn clone(&self) -> NewCachedAsset
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 moreAuto Trait Implementations§
impl Freeze for NewCachedAsset
impl RefUnwindSafe for NewCachedAsset
impl Send for NewCachedAsset
impl Sync for NewCachedAsset
impl Unpin for NewCachedAsset
impl UnsafeUnpin for NewCachedAsset
impl UnwindSafe for NewCachedAsset
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