pub struct Setting<T> {
pub value: T,
pub path: PathBuf,
pub scope: ContextScope,
}Expand description
One resolved value, with the file that decided it.
The provenance is not decoration. Two files can set the same key, the environment can set two of them, and a flag beats all of it — so “which model is this” and “who said so” are different questions, and a caller reporting its own configuration needs the second one answered without re-reading the files.
Fields§
§value: T§path: PathBufThe file this came from.
scope: ContextScopeContextScope::Workspace or ContextScope::Global; there is no
parent walk, for crate::mcp’s reason.
Trait Implementations§
impl<T: Eq> Eq for Setting<T>
impl<T: PartialEq> StructuralPartialEq for Setting<T>
Auto Trait Implementations§
impl<T> Freeze for Setting<T>where
T: Freeze,
impl<T> RefUnwindSafe for Setting<T>where
T: RefUnwindSafe,
impl<T> Send for Setting<T>where
T: Send,
impl<T> Sync for Setting<T>where
T: Sync,
impl<T> Unpin for Setting<T>where
T: Unpin,
impl<T> UnsafeUnpin for Setting<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Setting<T>where
T: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§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.