pub struct ArnSet { /* private fields */ }Expand description
ARN set operations for working with collections of ARNs
Implementations§
Source§impl ArnSet
impl ArnSet
Sourcepub fn from_arns<I>(arns: I) -> Result<Self, ArnError>where
I: IntoIterator<Item = String>,
pub fn from_arns<I>(arns: I) -> Result<Self, ArnError>where
I: IntoIterator<Item = String>,
Create from a collection of ARNs
Sourcepub fn add(&mut self, arn: String) -> Result<(), ArnError>
pub fn add(&mut self, arn: String) -> Result<(), ArnError>
Add an ARN to the set (validates it first)
Sourcepub fn filter_by_patterns(
&self,
patterns: &[String],
) -> Result<Vec<&str>, ArnError>
pub fn filter_by_patterns( &self, patterns: &[String], ) -> Result<Vec<&str>, ArnError>
Get ARNs that match any of the given patterns
Sourcepub fn filter_by_service(&self, service: &str) -> Result<Vec<&str>, ArnError>
pub fn filter_by_service(&self, service: &str) -> Result<Vec<&str>, ArnError>
Get all ARNs for a specific service
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ArnSet
impl RefUnwindSafe for ArnSet
impl Send for ArnSet
impl Sync for ArnSet
impl Unpin for ArnSet
impl UnwindSafe for ArnSet
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