pub struct WordchipperDiskCacheOptions {
pub cache_dir: Option<PathBuf>,
pub data_dir: Option<PathBuf>,
pub downloader: Option<fn() -> Downloader>,
}Expand description
Options for WordchipperDiskCache.
Fields§
§cache_dir: Option<PathBuf>Optional path to the cache directory.
data_dir: Option<PathBuf>Optional path to the data directory.
downloader: Option<fn() -> Downloader>Optional Downloader builder.
Implementations§
Source§impl WordchipperDiskCacheOptions
impl WordchipperDiskCacheOptions
Sourcepub fn with_cache_dir<P: AsRef<Path>>(self, cache_dir: Option<P>) -> Self
pub fn with_cache_dir<P: AsRef<Path>>(self, cache_dir: Option<P>) -> Self
Set the cache directory.
Sourcepub fn with_data_dir<P: AsRef<Path>>(self, data_dir: Option<P>) -> Self
pub fn with_data_dir<P: AsRef<Path>>(self, data_dir: Option<P>) -> Self
Set the data directory.
Sourcepub fn with_downloader(self, downloader: Option<fn() -> Downloader>) -> Self
pub fn with_downloader(self, downloader: Option<fn() -> Downloader>) -> Self
Set the downloader builder.
Trait Implementations§
Source§impl Clone for WordchipperDiskCacheOptions
impl Clone for WordchipperDiskCacheOptions
Source§fn clone(&self) -> WordchipperDiskCacheOptions
fn clone(&self) -> WordchipperDiskCacheOptions
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 WordchipperDiskCacheOptions
impl Debug for WordchipperDiskCacheOptions
Source§impl Default for WordchipperDiskCacheOptions
impl Default for WordchipperDiskCacheOptions
Source§fn default() -> WordchipperDiskCacheOptions
fn default() -> WordchipperDiskCacheOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WordchipperDiskCacheOptions
impl RefUnwindSafe for WordchipperDiskCacheOptions
impl Send for WordchipperDiskCacheOptions
impl Sync for WordchipperDiskCacheOptions
impl Unpin for WordchipperDiskCacheOptions
impl UnwindSafe for WordchipperDiskCacheOptions
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