pub struct SyncStamp {
pub digest: String,
pub generation: u64,
pub issues: usize,
pub projects: Vec<(String, String)>,
pub at: String,
}Expand description
What a mirror was generated against, written into its header so a reader can tell whether the file still matches the tracker.
Every field but at is a function of the corpus, so two runs over an
unchanged tracker differ only in the timestamp.
Fields§
§digest: StringCombined corpus digest the mirror was generated against.
generation: u64Event-log generation at stamp time.
issues: usizeIssue count at stamp time.
projects: Vec<(String, String)>Project name paired with its sub-digest, so a staleness check can name which project moved rather than only that something did.
at: StringLocal timestamp the stamp was written, YYYY-MM-DDTHH:MM.
Implementations§
Source§impl SyncStamp
impl SyncStamp
Sourcepub fn from_digest(digest: &CorpusDigest, at: String) -> Self
pub fn from_digest(digest: &CorpusDigest, at: String) -> Self
Build a stamp from a digest and a caller-supplied timestamp.
Sourcepub fn render(&self) -> String
pub fn render(&self) -> String
The stamp body, without the comment markers a format wraps it in.
Written without spaces inside any field so the line splits on whitespace.
Trait Implementations§
impl Eq for SyncStamp
impl StructuralPartialEq for SyncStamp
Auto Trait Implementations§
impl Freeze for SyncStamp
impl RefUnwindSafe for SyncStamp
impl Send for SyncStamp
impl Sync for SyncStamp
impl Unpin for SyncStamp
impl UnsafeUnpin for SyncStamp
impl UnwindSafe for SyncStamp
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more