[][src]Struct riven::models::tft_match_v1::Unit

pub struct Unit {
    pub items: Vec<i32>,
    pub character_id: String,
    pub name: String,
    pub rarity: i32,
    pub tier: i32,
}

Unit data object.

Fields

items: Vec<i32>

A list of the unit's items. Please refer to the Teamfight Tactics documentation for item ids.

character_id: String

This field was introduced in patch 9.22 with data_version 2.

name: String

Unit name.

rarity: i32

Unit rarity. This doesn't equate to the unit cost.

tier: i32

Unit tier.

Trait Implementations

impl Debug for Unit[src]

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

impl Serialize for Unit[src]

Auto Trait Implementations

impl RefUnwindSafe for Unit

impl Send for Unit

impl Sync for Unit

impl Unpin for Unit

impl UnwindSafe for Unit

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