Struct racetime::model::RaceData

source ·
pub struct RaceData {
Show 37 fields pub version: u32, pub name: String, pub slug: String, pub category: CategorySummary, pub status: RaceStatus, pub url: String, pub data_url: String, pub websocket_url: String, pub websocket_bot_url: String, pub websocket_oauth_url: String, pub goal: Goal, pub info: String, pub info_bot: Option<String>, pub info_user: Option<String>, pub entrants_count: u32, pub entrants_count_finished: u32, pub entrants_count_inactive: u32, pub entrants: Vec<Entrant>, pub opened_at: DateTime<Utc>, pub start_delay: UDuration, pub started_at: Option<DateTime<Utc>>, pub ended_at: Option<DateTime<Utc>>, pub cancelled_at: Option<DateTime<Utc>>, pub unlisted: bool, pub time_limit: UDuration, pub streaming_required: bool, pub auto_start: bool, pub opened_by: Option<UserData>, pub monitors: Vec<UserData>, pub recordable: bool, pub recorded: bool, pub recorded_by: Option<UserData>, pub allow_comments: bool, pub hide_comments: bool, pub allow_midrace_chat: bool, pub allow_non_entrant_chat: bool, pub chat_message_delay: UDuration,
}

Fields§

§version: u32§name: String§slug: String§category: CategorySummary§status: RaceStatus§url: String§data_url: String§websocket_url: String§websocket_bot_url: String§websocket_oauth_url: String§goal: Goal§info: String§info_bot: Option<String>§info_user: Option<String>§entrants_count: u32§entrants_count_finished: u32§entrants_count_inactive: u32§entrants: Vec<Entrant>§opened_at: DateTime<Utc>§start_delay: UDuration§started_at: Option<DateTime<Utc>>§ended_at: Option<DateTime<Utc>>§cancelled_at: Option<DateTime<Utc>>§unlisted: bool§time_limit: UDuration§streaming_required: bool§auto_start: bool§opened_by: Option<UserData>§monitors: Vec<UserData>§recordable: bool§recorded: bool§recorded_by: Option<UserData>§allow_comments: bool§hide_comments: bool§allow_midrace_chat: bool§allow_non_entrant_chat: bool§chat_message_delay: UDuration

Trait Implementations§

source§

impl Clone for RaceData

source§

fn clone(&self) -> RaceData

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for RaceData

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for RaceData

source§

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 RaceData

source§

fn eq(&self, other: &RaceData) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Eq for RaceData

source§

impl StructuralPartialEq for RaceData

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,