pub struct FilestoreConfig {
pub data_dir: String,
pub create_defaults_if_missing: bool,
pub auto_save_interval_secs: u64,
pub pretty_print: bool,
}Expand description
Configuration settings for the filestore
Controls how the filestore loads, saves, and manages data files.
§Examples
use gooty_proxy::io::filestore::FilestoreConfig;
// Create a custom configuration
let config = FilestoreConfig {
data_dir: "my_proxy_data".to_string(),
create_defaults_if_missing: true,
auto_save_interval_secs: 600, // 10 minutes
pretty_print: true,
};Fields§
§data_dir: StringDirectory where proxy data is stored
create_defaults_if_missing: boolWhether to create default files when they don’t exist
auto_save_interval_secs: u64How often to auto-save data (in seconds)
pretty_print: boolWhether to pretty-print TOML output
Trait Implementations§
Source§impl Clone for FilestoreConfig
impl Clone for FilestoreConfig
Source§fn clone(&self) -> FilestoreConfig
fn clone(&self) -> FilestoreConfig
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 FilestoreConfig
impl Debug for FilestoreConfig
Source§impl Default for FilestoreConfig
impl Default for FilestoreConfig
Source§fn default() -> FilestoreConfig
fn default() -> FilestoreConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FilestoreConfig
impl<'de> Deserialize<'de> for FilestoreConfig
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
Auto Trait Implementations§
impl Freeze for FilestoreConfig
impl RefUnwindSafe for FilestoreConfig
impl Send for FilestoreConfig
impl Sync for FilestoreConfig
impl Unpin for FilestoreConfig
impl UnsafeUnpin for FilestoreConfig
impl UnwindSafe for FilestoreConfig
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