Struct Event
Source pub struct Event {
pub event_key: String,
}
Expand description
The main class for representation of an FTC event.
Instances of this class should not be created directly;
instead use your Team
object.
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
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Performs copy-assignment from
source
.
Read more
Formats the value using the given formatter.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
🔬This is a nightly-only experimental API. (clone_to_uninit
)
Performs copy-assignment from
self
to
dest
.
Read more
Returns the argument unchanged.
Instruments this type with the provided
Span
, returning an
Instrumented
wrapper.
Read more
Instruments this type with the provided
Span
, returning an
Instrumented
wrapper.
Read more
Instruments this type with the
current Span
, returning an
Instrumented
wrapper.
Read more
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more
Uses borrowed data to replace owned data, usually by cloning.
Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.