Struct scl_core::version::structs::VersionMeta
source · pub struct VersionMeta {
pub inherits_from: String,
pub client_version: String,
pub java_version: Option<JavaVersion>,
pub arguments: Option<Arguments>,
pub minecraft_arguments: String,
pub asset_index: Option<AssetIndex>,
pub downloads: Option<BTreeMap<String, DownloadItem>>,
pub libraries: Vec<Library>,
pub logging: Option<Logging>,
pub main_class: String,
pub main_jars: Vec<String>,
}
Expand description
版本元数据
Fields§
§inherits_from: String
继承某个版本
client_version: String
1.12 以前的继承版本
java_version: Option<JavaVersion>
新版本的 Java 版本元数据
如果存在则可以根据此数据选择对应的 Java 运行时
arguments: Option<Arguments>
游戏启动参数
minecraft_arguments: String
游戏启动参数 旧版本
asset_index: Option<AssetIndex>
资源索引元数据
downloads: Option<BTreeMap<String, DownloadItem>>
该版本需要下载的主要游戏文件信息
libraries: Vec<Library>
该版本所需的依赖库列表
logging: Option<Logging>
该版本元数据的日志输出配置
main_class: String
该版本元数据的主类
main_jars: Vec<String>
该版本元数据的主类列表,因为有可能存在多个主类 JAR
Implementations§
source§impl VersionMeta
impl VersionMeta
sourcepub fn required_java_version(&self) -> u8
pub fn required_java_version(&self) -> u8
根据元数据判断需要的最低 Java 运行时版本
Trait Implementations§
source§impl AddAssign<VersionMeta> for VersionMeta
impl AddAssign<VersionMeta> for VersionMeta
source§fn add_assign(&mut self, data: VersionMeta)
fn add_assign(&mut self, data: VersionMeta)
Performs the
+=
operation. Read moresource§impl Clone for VersionMeta
impl Clone for VersionMeta
source§fn clone(&self) -> VersionMeta
fn clone(&self) -> VersionMeta
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 VersionMeta
impl Debug for VersionMeta
source§impl<'de> Deserialize<'de> for VersionMeta
impl<'de> Deserialize<'de> for VersionMeta
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<VersionMeta> for VersionMeta
impl PartialEq<VersionMeta> for VersionMeta
source§fn eq(&self, other: &VersionMeta) -> bool
fn eq(&self, other: &VersionMeta) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for VersionMeta
impl Serialize for VersionMeta
impl Eq for VersionMeta
impl StructuralEq for VersionMeta
impl StructuralPartialEq for VersionMeta
Auto Trait Implementations§
impl RefUnwindSafe for VersionMeta
impl Send for VersionMeta
impl Sync for VersionMeta
impl Unpin for VersionMeta
impl UnwindSafe for VersionMeta
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.