pub trait IdentifierLike where
    Self: Clone + Display + FromStr + Deref<Target = str>, 
{ fn new_unchecked(s: &str) -> Self
    where
        Self: Sized
; fn is_valid(s: &str) -> bool; fn any() -> Self { ... } fn is_any(&self) -> bool { ... } fn has_wildcards(&self) -> bool { ... } fn is_plain(&self) -> bool { ... } }
Expand description

This trait is implemented by the ResourceName component types. It represents a string-based identifier that is generally constructed using FromStr::from_str.

Required Methods

Construct a new Identifier from the provided string without checking it’s validity. This can be a useful method to improve performance for statically, or well-known, values; however, in general FromStr::from_str should be used.

Returns true if the provided string is a valid Identifier value, else false.

Provided Methods

Construct an account identifier that represents any.

Return true if this is simply the any wildcard, else false.

Returns true if this identifier contains any wildcard characeters, else false.

Return true if this identifier has no wildcards, else false.

Implementors