[][src]Enum boxcars::HeaderProp

pub enum HeaderProp {
    Array(Vec<Vec<(String, HeaderProp)>>),
    Bool(bool),
    Byte,
    Float(f32),
    Int(i32),
    Name(String),
    QWord(u64),
    Str(String),
}

All the interesting data are stored as properties in the header, properties such as:

  • When and who scored a goal
  • Player stats (goals, assists, score, etc).
  • Date and level played on

A property can be a number, string, or a more complex object such as an array containing additional properties.

Variants

Bool(bool)
Byte
Float(f32)
Int(i32)
Name(String)
QWord(u64)
Str(String)

Trait Implementations

impl Clone for HeaderProp[src]

impl PartialEq<HeaderProp> for HeaderProp[src]

impl Debug for HeaderProp[src]

impl Serialize for HeaderProp[src]

By default serde will generate a serialization method that writes out the enum as well as the enum value. Since header values are self describing in JSON, we do not need to serialize the enum type. This is slightly lossy as in the serialized format it will be ambiguous if a value is a Name or Str, as well as Byte, Float, Int, or QWord.

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for 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.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]