Struct scl_core::version::structs::AssetIndex
source · pub struct AssetIndex {
pub id: String,
pub sha1: String,
pub size: u32,
pub total_size: u32,
pub url: String,
}
Expand description
素材索引信息
Fields§
§id: String
素材的索引文件 ID,通常是当前的游戏版本号
sha1: String
素材的索引文件 SHA1 摘要
size: u32
素材的索引文件大小,以字节为单位
total_size: u32
所有素材的总计大小,以字节为单位
url: String
素材的索引文件的下载链接
Trait Implementations§
source§impl Clone for AssetIndex
impl Clone for AssetIndex
source§fn clone(&self) -> AssetIndex
fn clone(&self) -> AssetIndex
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 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
source§impl PartialEq<AssetIndex> for AssetIndex
impl PartialEq<AssetIndex> for AssetIndex
source§fn eq(&self, other: &AssetIndex) -> bool
fn eq(&self, other: &AssetIndex) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AssetIndex
impl Serialize for AssetIndex
impl Eq for AssetIndex
impl StructuralEq for AssetIndex
impl StructuralPartialEq for AssetIndex
Auto Trait Implementations§
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.