pub struct Mod {
pub name: String,
pub latest: String,
pub installed: bool,
pub upgradable: bool,
pub global: bool,
pub versions: BTreeMap<String, ModVersion>,
pub author: String,
}Fields§
§name: String§latest: StringThe latest version of the mod
installed: bool§upgradable: bool§global: bool§versions: BTreeMap<String, ModVersion>A map of each version of a mod
Implementations§
Source§impl Mod
impl Mod
pub fn get_latest(&self) -> Option<&ModVersion>
pub fn get_version(&self, version: impl AsRef<str>) -> Option<&ModVersion>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Mod
impl<'de> Deserialize<'de> for Mod
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
impl StructuralPartialEq for Mod
Auto Trait Implementations§
impl Freeze for Mod
impl RefUnwindSafe for Mod
impl Send for Mod
impl Sync for Mod
impl Unpin for Mod
impl UnwindSafe for Mod
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