[][src]Struct atelier_core::model::Identifier

pub struct Identifier(_);

A component of ShapeID, it represents an internal unqualified identifier.

Corresponds to the identifier production in §2.4.1, Shape ID ABNF, of the Smithy 1.0 Specification.

Implementations

impl Identifier[src]

pub fn is_valid(s: &str) -> bool[src]

Returns true if the provided string is a valid identifier representation, else false. This is preferred to calling from_str() and determining success or failure.

pub fn to_member(&self, member_name: Identifier) -> ShapeID[src]

Returns a new relative ShapeID with the member name appended to the current shape.

pub fn to_absolute(&self, ns: Namespace) -> ShapeID[src]

Returns a new absolute ShapeID with the namespace prepended to the current shape.

Trait Implementations

impl Clone for Identifier[src]

impl Debug for Identifier[src]

impl Display for Identifier[src]

impl Eq for Identifier[src]

impl From<Identifier> for ShapeID[src]

impl From<Identifier> for Key[src]

impl FromStr for Identifier[src]

type Err = Error

The associated error which can be returned from parsing.

impl Hash for Identifier[src]

impl Named<Identifier> for Member[src]

impl PartialEq<Identifier> for Identifier[src]

fn eq(&self, other: &Self) -> bool[src]

§ 2.4.2. Shape ID member names While shape IDs used within a model are case-sensitive, no two shapes in the model can have the same case-insensitive shape ID.

impl StructuralEq for Identifier[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.