pub struct ClientFile {Show 13 fields
pub arguments: Arguments,
pub asset_index: AssetIndex,
pub assets: String,
pub compliance_level: Option<u8>,
pub downloads: Downloads,
pub id: String,
pub java_version: ClientJavaVersion,
pub libraries: Vec<Library>,
pub main_class: String,
pub minimum_launcher_version: usize,
pub release_time: String,
pub time: String,
pub type: String,
}
Expand description
Implementation of client.json
files structure
Reference: https://minecraft.fandom.com/wiki/Client.json
Fields§
§arguments: Arguments
§asset_index: AssetIndex
§assets: String
§compliance_level: Option<u8>
Its value is 1 for all recent versions of the game (1.16.4 and above) or 0 for all others.
This tag tells the launcher whether it should urge the user to be careful since this version is older and might not support the latest player safety features.
downloads: Downloads
§id: String
The name of this version client (e.g. 1.14.4).
java_version: ClientJavaVersion
§libraries: Vec<Library>
§main_class: String
§minimum_launcher_version: usize
§release_time: String
§time: String
§type: String
Implementations§
Trait Implementations§
Source§impl Clone for ClientFile
impl Clone for ClientFile
Source§fn clone(&self) -> ClientFile
fn clone(&self) -> ClientFile
Returns a duplicate 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 ClientFile
impl Debug for ClientFile
Source§impl<'de> Deserialize<'de> for ClientFile
impl<'de> Deserialize<'de> for ClientFile
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 Freeze for ClientFile
impl RefUnwindSafe for ClientFile
impl Send for ClientFile
impl Sync for ClientFile
impl Unpin for ClientFile
impl UnwindSafe for ClientFile
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