[][src]Struct rustoa::Event

pub struct Event {
    pub event_key: String,
    // some fields omitted
}

The main class for representation of an FTC event.

Instances of this class should not be created directly; instead use your Team object.

Fields

event_key: String

Implementations

impl Event[src]

pub fn properties(&self) -> HashMap<String, String, RandomState>[src]

Basic information of the team.

This method takes no arguments.

It returns a HashMap<String, String>.

Panics

This method can panic in the following ways:

  • The HTTP request was not successful
  • The data received from the API was invalid JSON
  • The data received was in the wrong format

pub fn rank(&self, team_number: u32) -> f64[src]

The specified team's rank at the end of the match.

Arguments

  • team_number: u32 - The number of the team.

Panics

This method will panic if the data sent by the API is in the wrong format.

pub fn rank_change(&self, team_number: u32) -> f64[src]

The amount of times the team's rank changes during the event.

Arguments

  • team_number: u32 - The number of the team.

Panics

This method will panic if the data sent by the API is in the wrong format.

pub fn wins(&self, team_number: u32) -> f64[src]

The amount of times within the event that the specified team won a match.

Arguments

  • team_number: u32 - The number of the team.

Panics

This method will panic if the data sent by the API is in the wrong format.

pub fn losses(&self, team_number: u32) -> f64[src]

The amount of times within the event that the specified team lost a match.

Arguments

  • team_number: u32 - The number of the team.

Panics

This method will panic if the data sent by the API is in the wrong format.

pub fn ties(&self, team_number: u32) -> f64[src]

The amount of times within the event that the specified team tied a match.

Arguments

  • team_number: u32 - The number of the team.

Panics

This method will panic if the data sent by the API is in the wrong format.

pub fn opr(&self, team_number: u32) -> f64[src]

The specified team's OPR for this event only. Penalties are factored in.

Arguments

  • team_number: u32 - The number of the team.

Panics

This method will panic if the data sent by the API is in the wrong format.

pub fn np_opr(&self, team_number: u32) -> f64[src]

The specified team's OPR for this event only. Penaltied are not factored in.

Arguments

  • team_number: u32 - The number of the team.

Panics

This method will panic if the data sent by the API is in the wrong format.

pub fn highest_qualifier_score(&self, team_number: u32) -> f64[src]

The specified team's highest score in a qualifier.

Arguments

  • team_number: u32 - The number of the team.

Panics

This method will panic if the data sent by the API is in the wrong format.

pub fn ranking_points(&self, team_number: u32) -> f64[src]

The specified team's ranking points for this event only.

Arguments

  • team_number: u32 - The number of the team.

Panics

This method will panic if the data sent by the API is in the wrong format.

pub fn qualifying_points(&self, team_number: u32) -> f64[src]

The specified team's qualifying points for this event only.

Arguments

  • team_number: u32 - The number of the team.

Panics

This method will panic if the data sent by the API is in the wrong format.

pub fn tiebreaker_points(&self, team_number: u32) -> f64[src]

The specified team's tiebreaker points for this event only.

Arguments

  • team_number: u32 - The number of the team.

Panics

This method will panic if the data sent by the API is in the wrong format.

Trait Implementations

impl Clone for Event[src]

impl Debug for Event[src]

Auto Trait Implementations

impl RefUnwindSafe for Event

impl Send for Event

impl Sync for Event

impl Unpin for Event

impl UnwindSafe for Event

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