[][src]Struct brawl_api::model::players::battlelog::Battle

pub struct Battle {
    pub battle_time: TimeLike,
    pub event: BattleEvent,
    pub result: BattleResultInfo,
}

Represents a Battle in a player's BattleLog.

Fields

battle_time: TimeLike

The time at which this battle occurred, in ISO format.

event: BattleEvent

Data about the event in which this battle occurred.

result: BattleResultInfo

Data about the battle itself and its outcome.

Trait Implementations

impl Clone for Battle[src]

impl Debug for Battle[src]

impl Default for Battle[src]

fn default() -> Battle[src]

Returns a default Battle instance, with all default values initialized.

Examples

use brawl_api::{Battle, BattleEvent, BattleResultInfo, TimeLike};

assert_eq!(
    Battle::default(),
    Battle {
        battle_time: TimeLike::default(),
        event: BattleEvent::default(),
        result: BattleResultInfo::default()
    }
)

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

impl Eq for Battle[src]

impl Hash for Battle[src]

impl PartialEq<Battle> for Battle[src]

impl Serialize for Battle[src]

impl StructuralEq for Battle[src]

impl StructuralPartialEq for Battle[src]

Auto Trait Implementations

impl RefUnwindSafe for Battle

impl Send for Battle

impl Sync for Battle

impl Unpin for Battle

impl UnwindSafe for Battle

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> FetchFrom<T> for T where
    T: Clone + Send + Sync
[src]

fn fetch_from(&Client, &T) -> Result<T, Error>[src]

(Sync) Returns a copy of the current instance when attempting to fetch from itself. In order to re-fetch, see Refetchable.

Errors

Never errors; is only a Result in order to match the trait signature.

fn a_fetch_from<'life0, 'life1, 'async_trait>(
    &'life0 Client,
    &'life1 T
) -> Pin<Box<dyn Future<Output = Result<T, Error>> + 'async_trait + Send>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    T: 'async_trait, 
[src]

(Async) Returns a copy of the current instance when attempting to fetch from itself. In order to re-fetch, see Refetchable.

Errors

Never errors; is only a Result in order to match the trait signature.

impl<T, U> FetchInto<U> for T where
    T: Sync + Send,
    U: FetchFrom<T> + Sync + Send
[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.