pub struct AssetIndex {
pub map_to_resources: bool,
pub objects: HashMap<String, AssetInfo>,
}
Expand description
Map of all the assets for a Minecraft version.
Fields§
§map_to_resources: bool
Wether to install the assets as resources or not.
Used primarily on older versions (pre1.6).
objects: HashMap<String, AssetInfo>
Asset objects.
Key is the name of the file.
Trait Implementations§
Source§impl Clone for AssetIndex
impl Clone for AssetIndex
Source§fn clone(&self) -> AssetIndex
fn clone(&self) -> AssetIndex
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AssetIndex
impl Debug for AssetIndex
Source§impl<'de> Deserialize<'de> for AssetIndex
impl<'de> Deserialize<'de> for AssetIndex
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 AssetIndex
impl RefUnwindSafe for AssetIndex
impl Send for AssetIndex
impl Sync for AssetIndex
impl Unpin for AssetIndex
impl UnwindSafe for AssetIndex
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