#[non_exhaustive]pub struct AssumeRole {
pub role_arn_expr: Expression,
pub span: Span,
}Expand description
Optional assume_role { role_arn = "..." } sub-block of a provider.
Used by 16-provider-resolver.md § 4 to extract a cross-account account-id from the role ARN.
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.role_arn_expr: Expressionrole_arn expression as written in source.
span: SpanSpan of the assume_role { ... } block.
Implementations§
Trait Implementations§
Source§impl Clone for AssumeRole
impl Clone for AssumeRole
Source§fn clone(&self) -> AssumeRole
fn clone(&self) -> AssumeRole
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 AssumeRole
impl Debug for AssumeRole
Source§impl<'de> Deserialize<'de> for AssumeRole
impl<'de> Deserialize<'de> for AssumeRole
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AssumeRole
impl PartialEq for AssumeRole
Source§fn eq(&self, other: &AssumeRole) -> bool
fn eq(&self, other: &AssumeRole) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AssumeRole
impl Serialize for AssumeRole
impl StructuralPartialEq for AssumeRole
Auto Trait Implementations§
impl Freeze for AssumeRole
impl RefUnwindSafe for AssumeRole
impl Send for AssumeRole
impl Sync for AssumeRole
impl Unpin for AssumeRole
impl UnsafeUnpin for AssumeRole
impl UnwindSafe for AssumeRole
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