pub struct CacheOptions {
pub enabled: bool,
pub directory: PathBuf,
pub encrypt: bool,
}Expand description
Local cache of the last successfully pulled configuration JSON.
Fields§
§enabled: boolWhen true, successful pulls are written to disk and used if HTTP fails.
directory: PathBufDirectory for the cache file. Empty means the process working directory.
encrypt: boolWhen true, cache contents are AES-encrypted with the application secret.
Requires the cache-encrypt crate feature. Client::new returns
Error::CacheEncryptDisabled if this is set without that feature.
Trait Implementations§
Source§impl Clone for CacheOptions
impl Clone for CacheOptions
Source§fn clone(&self) -> CacheOptions
fn clone(&self) -> CacheOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CacheOptions
impl Debug for CacheOptions
Auto Trait Implementations§
impl Freeze 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