pub struct AssetItem {
pub hash: String,
pub size: usize,
}
Expand description
资源项目信息
Fields§
§hash: String
该资源文件的 SHA1 摘要值
通过将其拆解成开头两个字再和原摘要值组合即可取得该资源的下载链接
size: usize
该资源文件的大小,以字节为单位
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
source§impl PartialEq<AssetItem> for AssetItem
impl PartialEq<AssetItem> for AssetItem
impl Eq for AssetItem
impl StructuralEq for AssetItem
impl StructuralPartialEq for AssetItem
Auto Trait Implementations§
impl RefUnwindSafe for AssetItem
impl Send for AssetItem
impl Sync for AssetItem
impl Unpin 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
§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.