pub enum ModinfoVersion {
V1,
V2,
}
Expand description
The version of the modinfo.xml file
For reference, here are the two formats:
V1:
<ModInfo>
<Name value="SomeMod" />
<Description value="Mod to show format of ModInfo v1" />
<Author value="Name" />
<Version value="0.1.0" />
</ModInfo>
V2:
<?xml version="1.0" encoding="utf-8"?>
<xml>
<Name value="SomeMod" />
<DisplayName value="Official Mod Name" />
<Version value="0.1.0" />
<Description value="Mod to show format of ModInfo v2" />
<Author value="Name" />
<Website value="https://example.org" />
</xml>
Variants§
Trait Implementations§
Source§impl Clone for ModinfoVersion
impl Clone for ModinfoVersion
Source§fn clone(&self) -> ModinfoVersion
fn clone(&self) -> ModinfoVersion
Returns a copy 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 ModinfoVersion
impl Debug for ModinfoVersion
Source§impl Hash for ModinfoVersion
impl Hash for ModinfoVersion
Source§impl Ord for ModinfoVersion
impl Ord for ModinfoVersion
Source§fn cmp(&self, other: &ModinfoVersion) -> Ordering
fn cmp(&self, other: &ModinfoVersion) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ModinfoVersion
impl PartialEq for ModinfoVersion
Source§impl PartialOrd for ModinfoVersion
impl PartialOrd for ModinfoVersion
impl Eq for ModinfoVersion
impl StructuralPartialEq for ModinfoVersion
Auto Trait Implementations§
impl Freeze for ModinfoVersion
impl RefUnwindSafe for ModinfoVersion
impl Send for ModinfoVersion
impl Sync for ModinfoVersion
impl Unpin for ModinfoVersion
impl UnwindSafe for ModinfoVersion
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