pub struct Entry {
pub last_attempt: Option<String>,
pub last_success: Option<String>,
pub latest: Option<String>,
pub error: Option<String>,
}Expand description
What the cache records for one checkout.
Times are RFC 3339 text on disk and compared as times.
Fields§
§last_attempt: Option<String>When the last refresh started, success or failure.
last_success: Option<String>When the last refresh read the latest release.
latest: Option<String>The latest release the last success found.
error: Option<String>Why the last attempt failed, where it failed.
Implementations§
Source§impl Entry
impl Entry
Sourcepub fn attempted_at(&self) -> Option<Timestamp>
pub fn attempted_at(&self) -> Option<Timestamp>
When the last attempt started.
Sourcepub fn succeeded_at(&self) -> Option<Timestamp>
pub fn succeeded_at(&self) -> Option<Timestamp>
When the last success happened.
Sourcepub fn next_try(&self) -> Option<Timestamp>
pub fn next_try(&self) -> Option<Timestamp>
When a failed attempt allows the next try, where the last attempt failed.
Sourcepub fn latest_version(&self) -> Option<Version>
pub fn latest_version(&self) -> Option<Version>
The latest release found, as a version.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Entry
impl<'de> Deserialize<'de> for Entry
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
impl Eq for Entry
impl StructuralPartialEq for Entry
Auto Trait Implementations§
impl Forget for Entry
impl Freeze for Entry
impl Move for Entry
impl RefUnwindSafe for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnsafeUnpin for Entry
impl UnwindSafe for Entry
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.