pub struct FreshnessResult {
pub is_fresh: bool,
pub source: ManifestSource,
pub warning: Option<String>,
pub refetch_triggered: bool,
}Expand description
Result of a manifest freshness check.
Fields§
§is_fresh: boolWhether the manifest is fresh (not stale).
source: ManifestSourceSource of the manifest.
warning: Option<String>Warning message if the manifest is stale but usable.
refetch_triggered: boolWhether a re-fetch was triggered.
Trait Implementations§
Source§impl Clone for FreshnessResult
impl Clone for FreshnessResult
Auto Trait Implementations§
impl Freeze for FreshnessResult
impl RefUnwindSafe for FreshnessResult
impl Send for FreshnessResult
impl Sync for FreshnessResult
impl Unpin for FreshnessResult
impl UnsafeUnpin for FreshnessResult
impl UnwindSafe for FreshnessResult
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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