[][src]Struct speedruns::data::types::Run

pub struct Run {
    pub game_id: u64,
    pub category_id: u64,
    pub level_id: Option<u64>,
    pub id: u64,
    pub created: Option<DateTime<Utc>>,
    pub date: Option<NaiveDate>,
    pub times_ms: RunTimesMs,
    pub players: Vec<RunPlayer>,
}

Fields

game_id: u64category_id: u64level_id: Option<u64>id: u64created: Option<DateTime<Utc>>date: Option<NaiveDate>times_ms: RunTimesMsplayers: Vec<RunPlayer>

Methods

impl Run[src]

pub fn game_id(&self) -> &u64[src]

pub fn category_id(&self) -> &u64[src]

pub fn level_id(&self) -> &Option<u64>[src]

pub fn id(&self) -> &u64[src]

pub fn created(&self) -> &Option<DateTime<Utc>>[src]

pub fn date(&self) -> &Option<NaiveDate>[src]

pub fn times_ms(&self) -> &RunTimesMs[src]

pub fn players(&self) -> &Vec<RunPlayer>[src]

impl Run[src]

pub fn src_id(&self) -> String[src]

This item's ID as it would be formatted for SpeedRun.Com.

Trait Implementations

impl Clone for Run[src]

impl Debug for Run[src]

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

impl Eq for Run[src]

impl From<Run> for IntegrityError[src]

impl From<Run> for AnyModel[src]

impl Hash for Run[src]

impl Model for Run[src]

impl Ord for Run[src]

impl PartialEq<Run> for Run[src]

impl PartialOrd<Run> for Run[src]

impl Serialize for Run[src]

impl StructuralEq for Run[src]

impl StructuralPartialEq for Run[src]

impl TryFrom<AnyModel> for Run[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl Validate for Run[src]

Auto Trait Implementations

impl RefUnwindSafe for Run

impl Send for Run

impl Sync for Run

impl Unpin for Run

impl UnwindSafe for Run

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>,