pub struct ConfigKey {
pub file: String,
pub key: String,
pub value: String,
}Expand description
A single leaf config setting: its dotted key, source file, and value.
Fields§
§file: StringRepo-relative file the key was read from.
key: StringDotted key path (e.g. serve.addr), verbatim from the source.
value: StringThe scalar (or compact list/object) value, as a string. String scalars are
unquoted so the same setting compares across TOML / JSON / .env.
Trait Implementations§
impl Eq for ConfigKey
impl StructuralPartialEq for ConfigKey
Auto Trait Implementations§
impl Freeze for ConfigKey
impl RefUnwindSafe for ConfigKey
impl Send for ConfigKey
impl Sync for ConfigKey
impl Unpin for ConfigKey
impl UnsafeUnpin for ConfigKey
impl UnwindSafe for ConfigKey
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.