pub enum Origin {
Default,
Env(String),
File {
path: String,
line: usize,
},
Caller,
Cli(String),
}Expand description
Where a value came from.
Carried per scalar rather than per file, because the answer an operator
needs is about one value: after a base file and four drop-ins, which of
them set transport.mtu.
Variants§
Default
A compiled-in default. No file said anything.
Env(String)
The process environment, under this variable name.
File
A file, at this line (1-based).
Fields
Caller
Set programmatically by a caller.
Cli(String)
The command line, as the flag that carried it: --set a.b=1.
Trait Implementations§
impl Eq for Origin
impl StructuralPartialEq for Origin
Auto Trait Implementations§
impl Freeze for Origin
impl RefUnwindSafe for Origin
impl Send for Origin
impl Sync for Origin
impl Unpin for Origin
impl UnsafeUnpin for Origin
impl UnwindSafe for Origin
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