Struct scl_core::download::curseforge::ModInfo
source · pub struct ModInfo {
pub id: u64,
pub name: String,
pub summary: String,
pub slug: String,
pub logo: Option<ModAsset>,
}
Expand description
一个模组的信息
Fields§
§id: u64
模组的 ID
name: String
模组的名称
summary: String
模组的简短介绍
slug: String
模组的 Slug(一般是模组的字符串 ID)
logo: Option<ModAsset>
模组的 LOGO 图标
Trait Implementations§
source§impl<'de> Deserialize<'de> for ModInfo
impl<'de> Deserialize<'de> for ModInfo
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 RefUnwindSafe for ModInfo
impl Send for ModInfo
impl Sync for ModInfo
impl Unpin for ModInfo
impl UnwindSafe for ModInfo
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