pub struct Library {
pub name: String,
pub rules: Option<Vec<LibraryRule>>,
pub natives: Option<HashMap<String, String>>,
pub downloads: Option<LibraryDownloads>,
pub url: Option<String>,
pub loader: Option<String>,
}Fields§
§name: String§rules: Option<Vec<LibraryRule>>OS/feature rules from Mojang. Evaluated by utils::platform::skip_library.
natives: Option<HashMap<String, String>>Maps OS names to native classifier suffixes (e.g. "linux" → "natives-linux").
downloads: Option<LibraryDownloads>§url: Option<String>Base repository URL — used by Fabric/Quilt loader libraries (not in Mojang JSON).
loader: Option<String>Loader root path — injected at runtime when building loader classpath. Not present in Mojang JSON; set by the loader installer.
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 UnsafeUnpin 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