pub struct ConfigKey {
pub file: String,
pub key: String,
pub value: String,
pub value_known: bool,
}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. When
value_known is false this is a placeholder (empty)
and carries no meaning — see that field.
value_known: boolWhether value is a real setting read from a source, as
opposed to absent. File-derived keys always carry a value (even a genuine
empty string), so this is true; a struct-derived key
(meta.source = "struct") has no literal value in code, so it is false and
value is an empty placeholder. Value-agreement matching
(roteiro links --infer) must gate on this so an unknown value never
false-matches a spoke’s genuine empty string. Not serialized — an internal
matching detail, not part of the reported config-key shape.
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
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
key and return true if they are equal.