Struct scl_core::version::structs::JavaVersion
source · pub struct JavaVersion {
pub component: String,
pub major_version: u8,
}
Expand description
新版本的 Java 版本元数据
如果存在则可以根据此数据选择对应的 Java 运行时
Fields§
§component: String
该 Java 运行时版本在官方启动器中的代号
通过该代号可以找到官方使用的 JVM 运行时
major_version: u8
该 Java 运行时的主要版本号
Trait Implementations§
source§impl Clone for JavaVersion
impl Clone for JavaVersion
source§fn clone(&self) -> JavaVersion
fn clone(&self) -> JavaVersion
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 JavaVersion
impl Debug for JavaVersion
source§impl<'de> Deserialize<'de> for JavaVersion
impl<'de> Deserialize<'de> for JavaVersion
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<JavaVersion> for JavaVersion
impl PartialEq<JavaVersion> for JavaVersion
source§fn eq(&self, other: &JavaVersion) -> bool
fn eq(&self, other: &JavaVersion) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for JavaVersion
impl Serialize for JavaVersion
impl Eq for JavaVersion
impl StructuralEq for JavaVersion
impl StructuralPartialEq for JavaVersion
Auto Trait Implementations§
impl RefUnwindSafe for JavaVersion
impl Send for JavaVersion
impl Sync for JavaVersion
impl Unpin for JavaVersion
impl UnwindSafe for JavaVersion
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.