Struct cobble_core::minecraft::models::AssetIndexInfo
source · 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 copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
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