pub struct PartialDefaults { /* private fields */ }Expand description
Partial defaults for specific configuration paths.
This allows setting defaults for specific paths without needing to define the entire configuration structure.
§Example
ⓘ
use premortem::Defaults;
let source = Defaults::partial()
.set("server.port", 8080)
.set("server.host", "localhost")
.set("database.pool_size", 10);Implementations§
Trait Implementations§
Source§impl Clone for PartialDefaults
impl Clone for PartialDefaults
Source§fn clone(&self) -> PartialDefaults
fn clone(&self) -> PartialDefaults
Returns a duplicate of the value. Read more
1.0.0 · 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 PartialDefaults
impl Debug for PartialDefaults
Source§impl Default for PartialDefaults
impl Default for PartialDefaults
Source§fn default() -> PartialDefaults
fn default() -> PartialDefaults
Returns the “default value” for a type. Read more
Source§impl Source for PartialDefaults
impl Source for PartialDefaults
Auto Trait Implementations§
impl Freeze for PartialDefaults
impl RefUnwindSafe for PartialDefaults
impl Send for PartialDefaults
impl Sync for PartialDefaults
impl Unpin for PartialDefaults
impl UnwindSafe for PartialDefaults
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