pub struct KonfigOptions {
pub format: Format,
pub auto_save: bool,
pub use_callbacks: bool,
pub config_path: String,
}
Expand description
Used for configuring KonfigManager
Fields§
§format: Format
The format KonfigManager is supposed to use for the config file, possible options are in the Format
enum
auto_save: bool
If true
will try to save data to the config file on panic and SIGINT and SIGTERM (currently noop due to rust lifetime issues)
use_callbacks: bool
Whether to call the validate and on_load callbacks when loading the data from file
config_path: String
Path to the file used for configuration, if the file does not exist it will be created, the path can be absolute or relative
Auto Trait Implementations§
impl Freeze for KonfigOptions
impl RefUnwindSafe for KonfigOptions
impl Send for KonfigOptions
impl Sync for KonfigOptions
impl Unpin for KonfigOptions
impl UnwindSafe for KonfigOptions
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