Enum modinfo::ModinfoVersion
source · 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 PartialEq for ModinfoVersion
impl PartialEq for ModinfoVersion
source§fn eq(&self, other: &ModinfoVersion) -> bool
fn eq(&self, other: &ModinfoVersion) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for ModinfoVersion
impl StructuralPartialEq for ModinfoVersion
Auto Trait Implementations§
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