Enum scratchstack_arn::GlobPattern
source · [−]pub enum GlobPattern {
Empty,
Any,
Exact(Box<String>),
StartsWith(Box<String>),
Regex(Box<(String, Regex)>),
}
Expand description
A glob-style pattern matcher used in various Aspen policy elements.
Variants
Empty
Empty match.
Any
Wildcard match.
Exact(Box<String>)
Exact string match.
StartsWith(Box<String>)
StartsWith is a simple prefix match.
Regex(Box<(String, Regex)>)
Regex pattern contains the original Arn glob-like pattern followed by the compiled regex.
Implementations
Trait Implementations
sourceimpl Clone for GlobPattern
impl Clone for GlobPattern
sourcefn clone(&self) -> GlobPattern
fn clone(&self) -> GlobPattern
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for GlobPattern
impl Debug for GlobPattern
sourceimpl Display for GlobPattern
impl Display for GlobPattern
sourceimpl<T: AsRef<str>> From<T> for GlobPattern
impl<T: AsRef<str>> From<T> for GlobPattern
sourceimpl FromStr for GlobPattern
impl FromStr for GlobPattern
type Err = Infallible
type Err = Infallible
The associated error which can be returned from parsing.
sourceimpl Hash for GlobPattern
impl Hash for GlobPattern
sourceimpl PartialEq<GlobPattern> for GlobPattern
impl PartialEq<GlobPattern> for GlobPattern
impl Eq for GlobPattern
Auto Trait Implementations
impl RefUnwindSafe for GlobPattern
impl Send for GlobPattern
impl Sync for GlobPattern
impl Unpin for GlobPattern
impl UnwindSafe for GlobPattern
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more