Struct scl_core::version::mods::ForgeModMeta
source · pub struct ForgeModMeta {
pub name: String,
pub description: String,
pub version: String,
pub logo_file: String,
}
Expand description
一个 Forge 模组的元数据信息
注:在对老版本 1.12.2 以前的模组需要使用 Vec<ForgeModMeta>
来反序列化模组信息
Fields§
§name: String
模组的名称
description: String
模组的介绍
version: String
模组的版本号
logo_file: String
模组的图标文件路径
Trait Implementations§
source§impl Clone for ForgeModMeta
impl Clone for ForgeModMeta
source§fn clone(&self) -> ForgeModMeta
fn clone(&self) -> ForgeModMeta
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 ForgeModMeta
impl Debug for ForgeModMeta
source§impl Default for ForgeModMeta
impl Default for ForgeModMeta
source§fn default() -> ForgeModMeta
fn default() -> ForgeModMeta
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ForgeModMetawhere
ForgeModMeta: Default,
impl<'de> Deserialize<'de> for ForgeModMetawhere ForgeModMeta: Default,
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 ForgeModMeta
impl Send for ForgeModMeta
impl Sync for ForgeModMeta
impl Unpin for ForgeModMeta
impl UnwindSafe for ForgeModMeta
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