pub struct Entry {
pub prop: PropId,
pub value: Value,
pub origin: Origin,
pub renamed_from: Option<&'static str>,
pub written_key: Option<&'static str>,
}Expand description
One value a layer supplies.
Fields§
§prop: PropId§value: Value§origin: OriginThe exact place it came from — the variable’s name, the file’s path.
renamed_from: Option<&'static str>The key the user actually wrote, when it was an old name for prop.
A layer that looks a key up gets the id of the setting that replaced it, so without this the resolver cannot tell that anybody used the old name — and the warning that a deprecated key is in somebody’s config file never fires.
written_key: Option<&'static str>The exact canonical key or supported alias a keyed layer matched.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Entry
Auto Trait Implementations§
impl Freeze for Entry
impl RefUnwindSafe for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnsafeUnpin for Entry
impl UnwindSafe for Entry
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