[−][src]Struct rustoa::Event
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]
Trait Implementations
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,