#[non_exhaustive]pub struct DaemonOverrides {
pub log_json: Option<bool>,
pub log_level: Option<LogLevel>,
pub socket: Option<PathBuf>,
pub max_cron_sleep: Option<UpDuration>,
}Expand description
The CLI-flag layer of file < env < flags (spec §5).
Every field is Option: None means the flag was absent and the layer
below wins. Nothing here validates — DaemonConfig::load_layered runs
DaemonConfig’s single validation pass once, after all three layers,
so a flag can rescue a file the layer below would have rejected.
#[non_exhaustive] because this type grows a field every time the hidden
daemon subcommand grows a flag; that is anticipated by construction, not
hypothetical — the same field-growth reasoning DaemonConfig carries,
and like it, not a claim that the value was validated. Build one with
Self::new and the chained setters — the consuming-self shape
ProcessInfo::builder already uses in this workspace, and the shape
#[non_exhaustive] requires, since it rules out struct literals and
functional update from outside.
Debug is derived rather than redacted (IR-41): four values, none of
them a secret — a socket path and a log level are already visible in
ps.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.log_json: Option<bool>--log-json
log_level: Option<LogLevel>--log-level
socket: Option<PathBuf>--socket
max_cron_sleep: Option<UpDuration>--max-cron-sleep
Implementations§
Source§impl DaemonOverrides
impl DaemonOverrides
Sourcepub fn max_cron_sleep(self, value: Option<UpDuration>) -> Self
pub fn max_cron_sleep(self, value: Option<UpDuration>) -> Self
Sets the --max-cron-sleep override.
Trait Implementations§
Source§impl Clone for DaemonOverrides
impl Clone for DaemonOverrides
Source§fn clone(&self) -> DaemonOverrides
fn clone(&self) -> DaemonOverrides
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DaemonOverrides
impl Debug for DaemonOverrides
Source§impl Default for DaemonOverrides
impl Default for DaemonOverrides
Source§fn default() -> DaemonOverrides
fn default() -> DaemonOverrides
impl Eq for DaemonOverrides
Source§impl PartialEq for DaemonOverrides
impl PartialEq for DaemonOverrides
impl StructuralPartialEq for DaemonOverrides
Auto Trait Implementations§
impl Freeze for DaemonOverrides
impl RefUnwindSafe for DaemonOverrides
impl Send for DaemonOverrides
impl Sync for DaemonOverrides
impl Unpin for DaemonOverrides
impl UnsafeUnpin for DaemonOverrides
impl UnwindSafe for DaemonOverrides
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.