pub struct GutenbergCacheSettings {
pub cache_rdf_download_link: String,
pub cache_filename: String,
pub cache_rdf_unpack_directory: String,
pub cache_rdf_archive_name: String,
pub text_files_cache_folder: String,
pub db_in_memory: bool,
}Expand description
These are the essential settings for building your cache
Fields§
§cache_rdf_download_link: StringThis is the link used to download the rdf tar archive of rdfs from gutenberg
cache_filename: StringThis is the filename of the cache db
cache_rdf_unpack_directory: Stringthis is the directory used to unpack the rdf tar archive downloaded from gutenberg
cache_rdf_archive_name: Stringthis is the archive filename in which we download
text_files_cache_folder: Stringthis is the folder used to hold all the raw text data you download
db_in_memory: boolthis will make the cache in memory (it will not save it on disk), it is used in tests
Implementations§
Trait Implementations§
Source§impl Default for GutenbergCacheSettings
impl Default for GutenbergCacheSettings
Source§fn default() -> GutenbergCacheSettings
fn default() -> GutenbergCacheSettings
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GutenbergCacheSettings
impl RefUnwindSafe for GutenbergCacheSettings
impl Send for GutenbergCacheSettings
impl Sync for GutenbergCacheSettings
impl Unpin for GutenbergCacheSettings
impl UnwindSafe for GutenbergCacheSettings
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