#[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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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>
Creates a shared type from an unshared type.