Struct ModMismatch
pub struct ModMismatch {
pub mod_id: String,
pub saved_version: String,
pub current_version: Option<String>,
}Expand description
A mod the world was saved with that differs from the loaded mods
(ModMismatchEvent’s MismatchedVersionInfo).
Fields§
§mod_id: StringThe mod’s [mod] id.
saved_version: StringIts version when the world was saved; "" when it wasn’t known.
current_version: Option<String>Its version now; None when the mod is no longer loaded.
Trait Implementations§
§impl Clone for ModMismatch
impl Clone for ModMismatch
§fn clone(&self) -> ModMismatch
fn clone(&self) -> ModMismatch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for ModMismatch
impl Debug for ModMismatch
impl Eq for ModMismatch
§impl PartialEq for ModMismatch
impl PartialEq for ModMismatch
impl StructuralPartialEq for ModMismatch
Auto Trait Implementations§
impl Freeze for ModMismatch
impl RefUnwindSafe for ModMismatch
impl Send for ModMismatch
impl Sync for ModMismatch
impl Unpin for ModMismatch
impl UnsafeUnpin for ModMismatch
impl UnwindSafe for ModMismatch
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