#[non_exhaustive]pub struct ProfileEntry {
pub account_id: AccountId,
pub account_name: Arc<str>,
pub region: Option<Region>,
pub role_arn: Option<Arc<str>>,
}Expand description
One entry in the ProfileMap.
Per [16-provider-resolver.md § 2]. Account id and region are stored as
validated newtypes; role_arn stays as Arc<str> because it is only
ever passed back into extract_account_id
downstream.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.account_id: AccountIdAWS account id (12 digits).
account_name: Arc<str>Human-friendly label; may equal account_id when no other name is
available.
region: Option<Region>Region declared in the source, if any.
role_arn: Option<Arc<str>>Raw role_arn if the profile assumed a role.
Trait Implementations§
Source§impl Clone for ProfileEntry
impl Clone for ProfileEntry
Source§fn clone(&self) -> ProfileEntry
fn clone(&self) -> ProfileEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ProfileEntry
impl Debug for ProfileEntry
Source§impl PartialEq for ProfileEntry
impl PartialEq for ProfileEntry
Source§fn eq(&self, other: &ProfileEntry) -> bool
fn eq(&self, other: &ProfileEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ProfileEntry
impl StructuralPartialEq for ProfileEntry
Auto Trait Implementations§
impl Freeze for ProfileEntry
impl RefUnwindSafe for ProfileEntry
impl Send for ProfileEntry
impl Sync for ProfileEntry
impl Unpin for ProfileEntry
impl UnsafeUnpin for ProfileEntry
impl UnwindSafe for ProfileEntry
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.