[−][src]Struct sts_profile_auth::AwsProfileInfo
Profile meta-data, representing either a profile with an access key, or a profile utilizing sts.
Fields
name: String
region: String
aws_access_key_id: String
aws_secret_access_key: String
aws_session_token: Option<String>
role_arn: Option<String>
source_profile: Option<String>
Implementations
impl AwsProfileInfo
[src]
pub fn from_hashmap(
profile_name: &str,
profile_map: &HashMap<String, HashMap<String, String>>
) -> Option<Self>
[src]
profile_name: &str,
profile_map: &HashMap<String, HashMap<String, String>>
) -> Option<Self>
This function fills an instance of AwsProfileInfo
using a hashmap
generated by fill_profile_map
It will return None if all required
information cannot be found.
pub fn fill_profile_map() -> Result<HashMap<String, Self>, StsClientError>
[src]
Extract profile information hashmap from ${HOME}/.aws/config
and
${HOME}/.aws/credentials
Trait Implementations
impl Clone for AwsProfileInfo
[src]
fn clone(&self) -> AwsProfileInfo
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for AwsProfileInfo
[src]
impl Default for AwsProfileInfo
[src]
fn default() -> AwsProfileInfo
[src]
Auto Trait Implementations
impl RefUnwindSafe for AwsProfileInfo
impl Send for AwsProfileInfo
impl Sync for AwsProfileInfo
impl Unpin for AwsProfileInfo
impl UnwindSafe for AwsProfileInfo
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,