pub struct AssetIndexInfo {
pub id: String,
pub sha1: String,
pub size: usize,
pub total_size: i64,
pub url: String,
}
Expand description
Information of the asset index.
Fields§
§id: String
The ID of the index
sha1: String
SHA1 of the index JSON
size: usize
Size of the index JSON
total_size: i64
Size of all the assets contained in the index JSON
url: String
Url of the index JSON
Implementations§
Source§impl AssetIndexInfo
impl AssetIndexInfo
Sourcepub async fn fetch_index(&self) -> Result<AssetIndex>
pub async fn fetch_index(&self) -> Result<AssetIndex>
Gets the index itself from Minecraft servers.
Trait Implementations§
Source§impl Clone for AssetIndexInfo
impl Clone for AssetIndexInfo
Source§fn clone(&self) -> AssetIndexInfo
fn clone(&self) -> AssetIndexInfo
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 AssetIndexInfo
impl Debug for AssetIndexInfo
Source§impl<'de> Deserialize<'de> for AssetIndexInfo
impl<'de> Deserialize<'de> for AssetIndexInfo
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 AssetIndexInfo
impl RefUnwindSafe for AssetIndexInfo
impl Send for AssetIndexInfo
impl Sync for AssetIndexInfo
impl Unpin for AssetIndexInfo
impl UnwindSafe for AssetIndexInfo
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