pub struct ResolvedSettings {
pub settings: Settings,
pub prov: Arc<SettingsProv>,
}Expand description
A Settings paired with its per-leaf SettingsProv. Bundled because every
non-init CliResult variant needs both, the active values for runtime use
and the provenance for source attribution (/settings API and
config show). prov is Arc so it can move into the app state without a
re-allocation; SettingsProv is also large enough that an inline owned
value would balloon CliResult.
Fields§
§settings: Settings§prov: Arc<SettingsProv>Auto Trait Implementations§
impl !RefUnwindSafe for ResolvedSettings
impl !UnwindSafe for ResolvedSettings
impl Forget for ResolvedSettings
impl Freeze for ResolvedSettings
impl Move for ResolvedSettings
impl Send for ResolvedSettings
impl Sync for ResolvedSettings
impl Unpin for ResolvedSettings
impl UnsafeUnpin for ResolvedSettings
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more