Enum zenkit::types::AllId[][src]

pub enum AllId {
    ID(u64),
    ShortId(String),
    UUID(String),
    Any(String),
}

AllId is used when function parameters may accept more than one name for an object. In addition to id or uuid, many functions also accept a String name (e.g., a field name)

Variants

ID(u64)

Object ID

ShortId(String)

Object short id

UUID(String)

Object uuid

Any(String)

Any of the above, as a string

Trait Implementations

impl Debug for AllId[src]

impl Display for AllId[src]

impl From<&'_ String> for AllId[src]

impl From<&'_ str> for AllId[src]

impl From<&'_ u64> for AllId[src]

impl From<String> for AllId[src]

impl From<u64> for AllId[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> Instrument for T[src]

impl<T> Instrument for T[src]

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

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.