pub struct DetectedSave {
pub rel_path: PathBuf,
pub category: Cow<'static, str>,
pub label: Option<String>,
pub modified: SystemTime,
}Expand description
A detected save file or directory within a game’s save directory.
Fields§
§rel_path: PathBufPath relative to the game’s save directory.
category: Cow<'static, str>Category: “manual”, “auto”, “quick”, “point-of-no-return”, etc.
Uses Cow<'static, str> because categories are almost always
static string literals, avoiding heap allocation in the common case.
label: Option<String>Human-readable label (e.g. custom name from NamedSaves).
modified: SystemTimeLast modification time.
Trait Implementations§
Source§impl Clone for DetectedSave
impl Clone for DetectedSave
Source§fn clone(&self) -> DetectedSave
fn clone(&self) -> DetectedSave
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 moreAuto Trait Implementations§
impl Freeze for DetectedSave
impl RefUnwindSafe for DetectedSave
impl Send for DetectedSave
impl Sync for DetectedSave
impl Unpin for DetectedSave
impl UnsafeUnpin for DetectedSave
impl UnwindSafe for DetectedSave
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