pub enum FreshnessDef {
BestEffort {
max_staleness: String,
},
Strict,
}Expand description
Freshness policy definition.
Variants§
BestEffort
Best-effort freshness with max staleness tolerance
Strict
Strict freshness - always fetch from source
Trait Implementations§
Source§impl Clone for FreshnessDef
impl Clone for FreshnessDef
Source§fn clone(&self) -> FreshnessDef
fn clone(&self) -> FreshnessDef
Returns a duplicate of the value. Read more
1.0.0 · 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 FreshnessDef
impl Debug for FreshnessDef
Source§impl Default for FreshnessDef
impl Default for FreshnessDef
Source§impl<'de> Deserialize<'de> for FreshnessDef
impl<'de> Deserialize<'de> for FreshnessDef
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
Source§impl Display for FreshnessDef
impl Display for FreshnessDef
Source§impl PartialEq for FreshnessDef
impl PartialEq for FreshnessDef
Source§impl Serialize for FreshnessDef
impl Serialize for FreshnessDef
impl StructuralPartialEq for FreshnessDef
Auto Trait Implementations§
impl Freeze for FreshnessDef
impl RefUnwindSafe for FreshnessDef
impl Send for FreshnessDef
impl Sync for FreshnessDef
impl Unpin for FreshnessDef
impl UnwindSafe for FreshnessDef
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