Struct aws_runtime::env_config::section::EnvConfigSections
source · pub struct EnvConfigSections { /* private fields */ }
Expand description
A top-level configuration source containing multiple named profiles
Implementations§
source§impl EnvConfigSections
impl EnvConfigSections
sourcepub fn get(&self, key: &str) -> Option<&str>
pub fn get(&self, key: &str) -> Option<&str>
Retrieves a key-value pair from the currently selected profile
sourcepub fn get_profile(&self, profile_name: &str) -> Option<&Profile>
pub fn get_profile(&self, profile_name: &str) -> Option<&Profile>
Retrieves a named profile from the profile set
sourcepub fn selected_profile(&self) -> &str
pub fn selected_profile(&self) -> &str
Returns the name of the currently selected profile
sourcepub fn profiles(&self) -> impl Iterator<Item = &str>
pub fn profiles(&self) -> impl Iterator<Item = &str>
Returns the names of the profiles in this config
sourcepub fn sso_sessions(&self) -> impl Iterator<Item = &str>
pub fn sso_sessions(&self) -> impl Iterator<Item = &str>
Returns the names of the SSO sessions in this config
sourcepub fn sso_session(&self, name: &str) -> Option<&SsoSession>
pub fn sso_session(&self, name: &str) -> Option<&SsoSession>
Retrieves a named SSO session from the config
sourcepub fn other_sections(&self) -> &Properties
pub fn other_sections(&self) -> &Properties
Returns a struct allowing access to other sections in the profile config
Trait Implementations§
source§impl Clone for EnvConfigSections
impl Clone for EnvConfigSections
source§fn clone(&self) -> EnvConfigSections
fn clone(&self) -> EnvConfigSections
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for EnvConfigSections
impl Debug for EnvConfigSections
source§impl Default for EnvConfigSections
impl Default for EnvConfigSections
source§impl PartialEq for EnvConfigSections
impl PartialEq for EnvConfigSections
impl Eq for EnvConfigSections
impl StructuralPartialEq for EnvConfigSections
Auto Trait Implementations§
impl Freeze for EnvConfigSections
impl RefUnwindSafe for EnvConfigSections
impl Send for EnvConfigSections
impl Sync for EnvConfigSections
impl Unpin for EnvConfigSections
impl UnwindSafe for EnvConfigSections
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> 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.