pub enum AssetItem {
CFile {
path: String,
content: String,
},
Asset {
path: String,
sha1: String,
size: u64,
url: String,
},
NativeAsset {
path: String,
sha1: String,
size: u64,
url: String,
},
}Expand description
Resolved bundle entry produced by the game/* modules.
Variants§
CFile
A file whose content is known at resolve-time — written verbatim to disk
without downloading (e.g. assets/indexes/<id>.json,
versions/<id>/<id>.json).
Asset
A regular downloadable file verified by SHA-1.
NativeAsset
A native JAR (.dll/.so/.dylib bundle) — downloaded like Asset
but then extracted to versions/<id>/natives/ by extract_natives.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AssetItem
impl<'de> Deserialize<'de> for AssetItem
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 AssetItem
impl RefUnwindSafe for AssetItem
impl Send for AssetItem
impl Sync for AssetItem
impl Unpin for AssetItem
impl UnsafeUnpin for AssetItem
impl UnwindSafe for AssetItem
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