pub struct SaveSnapshot {
pub id: String,
pub message: String,
pub timestamp: i64,
pub file_count: usize,
pub fingerprint: Option<SaveFingerprint>,
pub profile_name: Option<String>,
pub character_name: Option<String>,
pub save_label: Option<String>,
pub category: Option<String>,
}Expand description
A snapshot entry from the save vault history.
Fields§
§id: StringFull commit hash.
message: StringCommit message.
timestamp: i64Unix timestamp.
file_count: usizeNumber of files in this snapshot.
fingerprint: Option<SaveFingerprint>Mod fingerprint extracted from the commit, if present.
profile_name: Option<String>Profile name extracted from the commit message.
character_name: Option<String>Character/player name extracted from the save label.
save_label: Option<String>Save label (e.g. “Save 14”).
category: Option<String>Save category (e.g. “manual”, “auto”, “quick”).
Implementations§
Source§impl SaveSnapshot
impl SaveSnapshot
Sourcepub fn short_id(&self) -> &str
pub fn short_id(&self) -> &str
First 8 characters of the commit hash — computed on demand instead of storing a redundant heap allocation.
Sourcepub fn display_title(&self) -> String
pub fn display_title(&self) -> String
Human-readable title for display: character + save label, or first message line.
Sourcepub fn check_compatibility(&self, current: &SaveFingerprint) -> FingerprintCheck
pub fn check_compatibility(&self, current: &SaveFingerprint) -> FingerprintCheck
Check whether this snapshot’s fingerprint is compatible with the given fingerprint.
Trait Implementations§
Source§impl Clone for SaveSnapshot
impl Clone for SaveSnapshot
Source§fn clone(&self) -> SaveSnapshot
fn clone(&self) -> SaveSnapshot
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 moreSource§impl Debug for SaveSnapshot
impl Debug for SaveSnapshot
Source§impl PartialEq for SaveSnapshot
impl PartialEq for SaveSnapshot
Source§fn eq(&self, other: &SaveSnapshot) -> bool
fn eq(&self, other: &SaveSnapshot) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for SaveSnapshot
impl StructuralPartialEq for SaveSnapshot
Auto Trait Implementations§
impl Freeze for SaveSnapshot
impl RefUnwindSafe for SaveSnapshot
impl Send for SaveSnapshot
impl Sync for SaveSnapshot
impl Unpin for SaveSnapshot
impl UnsafeUnpin for SaveSnapshot
impl UnwindSafe for SaveSnapshot
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.