#[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 the single validation pass once, after all three layers.
#[non_exhaustive]: this type grows a field whenever the hidden
daemon subcommand grows a flag. Build one with Self::new and the
chained setters.
Debug is derived, not redacted: four values, none a secret.
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.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
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 DaemonOverrides
impl Debug for DaemonOverrides
Source§impl Default for DaemonOverrides
impl Default for DaemonOverrides
Source§fn default() -> DaemonOverrides
fn default() -> DaemonOverrides
Returns the “default value” for a type. Read more
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
Mutably borrows from an owned value. Read more
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
Compare self to
key and return true if they are equal.