[][src]Enum speedruns::data::models::AnyModel

pub enum AnyModel {
    Run(Run),
    User(User),
    Game(Game),
    Category(Category),
    Level(Level),
}

A reference to any Model type.

Variants

Run(Run)
User(User)
Game(Game)
Category(Category)
Level(Level)

Trait Implementations

impl Clone for AnyModel[src]

impl Debug for AnyModel[src]

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

impl Eq for AnyModel[src]

impl From<Category> for AnyModel[src]

impl From<Game> for AnyModel[src]

impl From<Level> for AnyModel[src]

impl From<Run> for AnyModel[src]

impl From<User> for AnyModel[src]

impl Hash for AnyModel[src]

impl Model for AnyModel[src]

impl Ord for AnyModel[src]

impl PartialEq<AnyModel> for AnyModel[src]

impl PartialOrd<AnyModel> for AnyModel[src]

impl Serialize for AnyModel[src]

impl StructuralEq for AnyModel[src]

impl StructuralPartialEq for AnyModel[src]

impl TryFrom<AnyModel> for Category[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<AnyModel> for Level[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<AnyModel> for Run[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<AnyModel> for User[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<AnyModel> for Game[src]

type Error = &'static str

The type returned in the event of a conversion error.

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: 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> Same<T> for T

type Output = T

Should always be Self

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<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

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