pub struct CacheOptions {
pub revalidate: Option<Duration>,
pub tags: Vec<String>,
}Expand description
Options for Cache::get_or_insert_json.
Fields§
§revalidate: Option<Duration>Implementations§
Source§impl CacheOptions
impl CacheOptions
Trait Implementations§
Source§impl Clone for CacheOptions
impl Clone for CacheOptions
Source§impl Debug for CacheOptions
impl Debug for CacheOptions
Auto Trait Implementations§
impl Forget for CacheOptions
impl Freeze for CacheOptions
impl Move for CacheOptions
impl RefUnwindSafe for CacheOptions
impl Send for CacheOptions
impl Sync for CacheOptions
impl Unpin for CacheOptions
impl UnsafeUnpin for CacheOptions
impl UnwindSafe for CacheOptions
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