#[non_exhaustive]pub struct ModFileTracker {
pub mod_name: String,
pub files: Vec<(String, String)>,
}Expand description
Records the files a State-tracked mod installed, so enable/disable can undo
and redo them. Mirrors r2modman’s _state/<mod>-state.yml ModFileTracker:
each pair is (cache source path, profile-relative install path).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.mod_name: StringThe mod’s Owner-Name identifier.
files: Vec<(String, String)>(source, install-relative) pairs, in plan order.
Trait Implementations§
Source§impl Clone for ModFileTracker
impl Clone for ModFileTracker
Source§impl Debug for ModFileTracker
impl Debug for ModFileTracker
Source§impl<'de> Deserialize<'de> for ModFileTracker
impl<'de> Deserialize<'de> for ModFileTracker
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
Auto Trait Implementations§
impl Freeze for ModFileTracker
impl RefUnwindSafe for ModFileTracker
impl Send for ModFileTracker
impl Sync for ModFileTracker
impl Unpin for ModFileTracker
impl UnsafeUnpin for ModFileTracker
impl UnwindSafe for ModFileTracker
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