[][src]Struct demostf_client::Demo

pub struct Demo {
    pub id: u32,
    pub url: String,
    pub name: String,
    pub server: String,
    pub duration: u16,
    pub nick: String,
    pub map: String,
    pub time: DateTime<Utc>,
    pub red: String,
    pub blue: String,
    pub red_score: u8,
    pub blue_score: u8,
    pub player_count: u8,
    pub uploader: UserRef,
    pub hash: [u8; 16],
    pub backend: String,
    pub path: String,
    pub players: Vec<Player>,
}

Fields

id: u32url: Stringname: Stringserver: Stringduration: u16nick: Stringmap: Stringtime: DateTime<Utc>red: Stringblue: Stringred_score: u8blue_score: u8player_count: u8uploader: UserRefhash: [u8; 16]backend: Stringpath: Stringplayers: Vec<Player>

Demos listed using ApiClient::list will not have any players set

Implementations

impl Demo[src]

pub async fn get_players<'a, '_>(
    &'a self,
    client: &'_ ApiClient
) -> Result<Cow<'a, [Player]>, Error>
[src]

Return either the stored players info or get the players from the api

Trait Implementations

impl Clone for Demo[src]

impl Debug for Demo[src]

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

Auto Trait Implementations

impl RefUnwindSafe for Demo

impl Send for Demo

impl Sync for Demo

impl Unpin for Demo

impl UnwindSafe for Demo

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