pub enum IAMResource {
Single(String),
Multiple(Vec<String>),
}
Expand description
Represents a resource in an IAM policy
Variants§
Single(String)
A single resource (e.g., “arn:aws:s3:::bucket/*
”)
Multiple(Vec<String>)
Multiple resources
Trait Implementations§
Source§impl Clone for IAMResource
impl Clone for IAMResource
Source§fn clone(&self) -> IAMResource
fn clone(&self) -> IAMResource
Returns a duplicate 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 IAMResource
impl Debug for IAMResource
Source§impl<'de> Deserialize<'de> for IAMResource
impl<'de> Deserialize<'de> for IAMResource
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 IAMResource
impl PartialEq for IAMResource
Source§impl Serialize for IAMResource
impl Serialize for IAMResource
Source§impl Validate for IAMResource
impl Validate for IAMResource
Source§fn validate(&self, context: &mut ValidationContext) -> ValidationResult
fn validate(&self, context: &mut ValidationContext) -> ValidationResult
Validate the component within the given context Read more
Source§fn validate_result(&self) -> ValidationResult
fn validate_result(&self) -> ValidationResult
Validate with detailed errors (same as regular validation) Read more
impl Eq for IAMResource
impl StructuralPartialEq for IAMResource
Auto Trait Implementations§
impl Freeze for IAMResource
impl RefUnwindSafe for IAMResource
impl Send for IAMResource
impl Sync for IAMResource
impl Unpin for IAMResource
impl UnwindSafe for IAMResource
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