[][src]Struct norad::Identifier

pub struct Identifier(_);

Identifiers are optional attributes of several objects in the UFO. These identifiers are required to be unique within certain contexts as defined on a per object basis throughout this specification. Identifiers are specified as a string between one and 100 characters long. All characters must be in the printable ASCII range, 0x20 to 0x7E.

Implementations

impl Identifier[src]

pub fn new(s: impl Into<Arc<str>>) -> Result<Self, ErrorKind>[src]

Create a new Identifier from a String, if it is valid.

A valid identifier must have between 0 and 100 characters, and each character must be in the printable ASCII range, 0x20 to 0x7E.

pub fn from_uuidv4() -> Self[src]

pub fn as_str(&self) -> &str[src]

Return the raw identifier, as a &str.

Trait Implementations

impl Clone for Identifier[src]

impl Debug for Identifier[src]

impl<'de> Deserialize<'de> for Identifier[src]

impl Eq for Identifier[src]

impl FromStr for Identifier[src]

type Err = ErrorKind

The associated error which can be returned from parsing.

impl Hash for Identifier[src]

impl PartialEq<Identifier> for Identifier[src]

impl PartialEq<String> for Identifier[src]

impl Serialize for Identifier[src]

impl StructuralEq for Identifier[src]

impl StructuralPartialEq 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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?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, 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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,