pub struct PartialLibrary {
pub downloads: Option<LibraryDownloads>,
pub extract: Option<LibraryExtract>,
pub name: Option<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: Option<bool>,
}Expand description
A partial library which should be merged with a full library
Fields§
§downloads: Option<LibraryDownloads>The files the library has
extract: Option<LibraryExtract>Rules of the extraction of the file
name: Option<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: Option<bool>Whether the library should be included in the classpath at the game’s launch
Trait Implementations§
Source§impl Clone for PartialLibrary
impl Clone for PartialLibrary
Source§fn clone(&self) -> PartialLibrary
fn clone(&self) -> PartialLibrary
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 PartialLibrary
impl Debug for PartialLibrary
Source§impl<'de> Deserialize<'de> for PartialLibrary
impl<'de> Deserialize<'de> for PartialLibrary
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 PartialLibrary
impl RefUnwindSafe for PartialLibrary
impl Send for PartialLibrary
impl Sync for PartialLibrary
impl Unpin for PartialLibrary
impl UnwindSafe for PartialLibrary
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