pub struct EventSimple {
pub key: String,
pub name: String,
pub event_code: String,
pub event_type: i32,
pub district: Option<Box<DistrictList>>,
pub city: Option<String>,
pub state_prov: Option<String>,
pub country: Option<String>,
pub start_date: String,
pub end_date: String,
pub year: i32,
}
Fields§
§key: String
TBA event key with the format yyyy[EVENT_CODE], where yyyy is the year, and EVENT_CODE is the event code of the event.
name: String
Official name of event on record either provided by FIRST or organizers of offseason event.
event_code: String
Event short code, as provided by FIRST.
event_type: i32
Event Type, as defined here: https://github.com/the-blue-alliance/the-blue-alliance/blob/master/consts/event_type.py#L2
district: Option<Box<DistrictList>>
§city: Option<String>
City, town, village, etc. the event is located in.
state_prov: Option<String>
State or Province the event is located in.
country: Option<String>
Country the event is located in.
start_date: String
Event start date in yyyy-mm-dd
format.
end_date: String
Event end date in yyyy-mm-dd
format.
year: i32
Year the event data is for.
Implementations§
Trait Implementations§
Source§impl Clone for EventSimple
impl Clone for EventSimple
Source§fn clone(&self) -> EventSimple
fn clone(&self) -> EventSimple
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for EventSimple
impl Debug for EventSimple
Source§impl Default for EventSimple
impl Default for EventSimple
Source§fn default() -> EventSimple
fn default() -> EventSimple
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EventSimple
impl<'de> Deserialize<'de> for EventSimple
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for EventSimple
impl PartialEq for EventSimple
Source§impl Serialize for EventSimple
impl Serialize for EventSimple
impl StructuralPartialEq for EventSimple
Auto Trait Implementations§
impl Freeze for EventSimple
impl RefUnwindSafe for EventSimple
impl Send for EventSimple
impl Sync for EventSimple
impl Unpin for EventSimple
impl UnwindSafe for EventSimple
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more