pub struct ToMoveGame {
pub url: String,
pub move_by: DateTime<Utc>,
pub draw_offer: Option<bool>,
pub last_activity: DateTime<Utc>,
}
Fields§
§url: String
URL of this game
move_by: DateTime<Utc>
Timestamp of when the next move must be made
draw_offer: Option<bool>
Player who has made a draw offer (optional)
last_activity: DateTime<Utc>
Timestamp of the last activity on the game
Implementations§
Trait Implementations§
Source§impl Clone for ToMoveGame
impl Clone for ToMoveGame
Source§fn clone(&self) -> ToMoveGame
fn clone(&self) -> ToMoveGame
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ToMoveGame
impl Debug for ToMoveGame
Source§impl<'de> Deserialize<'de> for ToMoveGame
impl<'de> Deserialize<'de> for ToMoveGame
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 ToMoveGame
impl PartialEq for ToMoveGame
Source§impl Serialize for ToMoveGame
impl Serialize for ToMoveGame
impl StructuralPartialEq for ToMoveGame
Auto Trait Implementations§
impl Freeze for ToMoveGame
impl RefUnwindSafe for ToMoveGame
impl Send for ToMoveGame
impl Sync for ToMoveGame
impl Unpin for ToMoveGame
impl UnwindSafe for ToMoveGame
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