#[non_exhaustive]pub struct Origin { /* private fields */ }Expand description
A type for tracking the origin of config values.
Implementations§
Source§impl Origin
impl Origin
Set on a shared config struct.
Sourcepub fn service_config() -> Self
pub fn service_config() -> Self
Set on a service config struct.
Set by an environment variable.
Sourcepub fn service_environment_variable() -> Self
pub fn service_environment_variable() -> Self
Set by a service-specific environment variable.
Set in a profile file.
Sourcepub fn service_profile_file() -> Self
pub fn service_profile_file() -> Self
Service-specific, set in a profile file.
Sourcepub fn is_client_config(&self) -> bool
pub fn is_client_config(&self) -> bool
Return true if the origin was set programmatically i.e. on an SdkConfig or service Config.
Trait Implementations§
Source§impl PartialOrd for Origin
impl PartialOrd for Origin
impl Copy for Origin
impl StructuralPartialEq for Origin
Auto Trait Implementations§
impl Freeze for Origin
impl RefUnwindSafe for Origin
impl Send for Origin
impl Sync for Origin
impl Unpin for Origin
impl UnwindSafe for Origin
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreCreates a shared type from an unshared type.