#[non_exhaustive]pub struct Config {
pub record: RecordConfig,
pub storage: StorageConfig,
pub replay: ReplayConfig,
pub redaction: RedactionConfig,
}Expand description
The full configuration.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.record: RecordConfig[record]
storage: StorageConfig[storage]
replay: ReplayConfig[replay]
redaction: RedactionConfig[redaction]
Implementations§
Source§impl Config
impl Config
Sourcepub fn load(config_path: &Path) -> Result<Self>
pub fn load(config_path: &Path) -> Result<Self>
Load configuration from config_path, falling back to Default when
the file does not exist. Unknown keys warn on stderr but never fail.
When config_path (config.toml) is absent but a legacy config file
(halfhand.toml or hh.toml) exists in the same directory, that file
is loaded instead — a pre-rename config still takes effect and is never
silently ignored. A single one-line deprecation hint is emitted on stderr
pointing the user at the rename.
Trait Implementations§
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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