pub struct Library {
pub downloads: Option<LibraryDownloads>,
pub extract: Option<LibraryExtract>,
pub name: String,
pub url: Option<String>,
pub natives: Option<HashMap<Os, String>>,
pub rules: Option<Vec<Rule>>,
pub checksums: Option<Vec<String>>,
pub include_in_classpath: bool,
pub downloadable: bool,
}
Expand description
A library which the game relies on to run
Fields§
§downloads: Option<LibraryDownloads>
The files the library has
extract: Option<LibraryExtract>
Rules of the extraction of the file
name: String
The maven name of the library. The format is groupId:artifactId:version
url: Option<String>
The URL to the repository where the library can be downloaded
natives: Option<HashMap<Os, String>>
Native files that the library relies on
rules: Option<Vec<Rule>>
Rules deciding whether the library should be downloaded or not
checksums: Option<Vec<String>>
SHA1 Checksums for validating the library’s integrity. Only present for forge libraries
include_in_classpath: bool
Whether the library should be included in the classpath at the game’s launch
downloadable: bool
Whether the library should be downloaded.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Library
impl<'de> Deserialize<'de> for Library
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 Library
impl RefUnwindSafe for Library
impl Send for Library
impl Sync for Library
impl Unpin for Library
impl UnwindSafe for Library
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