pub struct Library {
pub downloads: Option<LibraryDownloads>,
pub name: String,
pub rules: Option<Box<[Rule]>>,
}Expand description
A Library from a piston-meta version.
This struct represents the folowing JSON from piston-meta:
{
"downloads": {
"artifact": {
"path": "org/lwjgl/lwjgl-jemalloc/3.3.3/lwjgl-jemalloc-3.3.3-natives-macos.jar",
"sha1": "2906637657a57579847238c9c72d2c4bde7083f8",
"size": 153131,
"url": "https://libraries.minecraft.net/org/lwjgl/lwjgl-jemalloc/3.3.3/lwjgl-jemalloc-3.3.3-natives-macos.jar"
}
},
"name": "org.lwjgl:lwjgl-jemalloc:3.3.3:natives-macos",
"rules": [
{
"action": "allow",
"os": {
"name": "osx"
}
}
]
}Fields§
§downloads: Option<LibraryDownloads>§name: String§rules: Option<Box<[Rule]>>Implementations§
Trait Implementations§
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more