pub struct ConfigEntry {
pub key: String,
pub value: Option<String>,
pub scope: ConfigScope,
pub file: Option<PathBuf>,
pub line: usize,
}Expand description
A single configuration entry with its origin metadata.
Fields§
§key: StringFully-qualified key in canonical form: section.subsection.name
(section and name lowercased; subsection preserves case).
value: Option<String>The raw string value, or None for a boolean-true bare key.
scope: ConfigScopeWhich scope this entry came from.
file: Option<PathBuf>The file this entry was read from (if file-backed).
line: usizeOne-based line number in the source file.
Trait Implementations§
Source§impl Clone for ConfigEntry
impl Clone for ConfigEntry
Source§fn clone(&self) -> ConfigEntry
fn clone(&self) -> ConfigEntry
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 moreAuto Trait Implementations§
impl Freeze for ConfigEntry
impl RefUnwindSafe for ConfigEntry
impl Send for ConfigEntry
impl Sync for ConfigEntry
impl Unpin for ConfigEntry
impl UnsafeUnpin for ConfigEntry
impl UnwindSafe for ConfigEntry
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