Struct chesscom_openapi::models::daily_game::DailyGame [−][src]
Fields
white: StringURL of the white player’s profile
black: StringURL of the black player’s profile
url: StringURL of this game
fen: Stringcurrent FEN
pgn: Stringcurrent PGN
turn: Playermove_by: Option<DateTime<Utc>>timestamp of when the next move must be made
draw_offer: Option<Player>last_activity: DateTime<Utc>timestamp of the last activity on the game
start_time: Option<DateTime<Utc>>timestamp of the game start (Daily Chess only)
time_control: StringPGN-compliant time control
time_class: TimeClasstime-per-move grouping, used for ratings
rules: Rulesgame variant information (e.g., "chess960")
tournament: Option<String>URL pointing to tournament (if available)
_match: Option<String>URL pointing to team match (if available)
Implementations
impl DailyGame[src]
pub fn new(
white: String,
black: String,
url: String,
fen: String,
pgn: String,
turn: Player,
last_activity: DateTime<Utc>,
time_control: String,
time_class: TimeClass,
rules: Rules
) -> DailyGame[src]
white: String,
black: String,
url: String,
fen: String,
pgn: String,
turn: Player,
last_activity: DateTime<Utc>,
time_control: String,
time_class: TimeClass,
rules: Rules
) -> DailyGame
Trait Implementations
impl Clone for DailyGame[src]
impl Debug for DailyGame[src]
impl<'de> Deserialize<'de> for DailyGame[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl PartialEq<DailyGame> for DailyGame[src]
impl Serialize for DailyGame[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer, [src]
__S: Serializer,
impl StructuralPartialEq for DailyGame[src]
Auto Trait Implementations
impl RefUnwindSafe for DailyGame
impl Send for DailyGame
impl Sync for DailyGame
impl Unpin for DailyGame
impl UnwindSafe for DailyGame
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,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[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.
pub fn to_owned(&self) -> T[src]
pub 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.
pub 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>,