pub struct LevelCompletion {
pub time_sec: u64,
pub hints: u32,
pub attempts: u32,
pub completed_at: NaiveDateTime,
}Expand description
The record of one finished level.
Fields§
§time_sec: u64Whole seconds between first seeing the level and finishing it.
hints: u32Hints revealed on the level.
attempts: u32Failed submissions on the level.
completed_at: NaiveDateTimeWhen the level was finished.
Trait Implementations§
Source§impl Clone for LevelCompletion
impl Clone for LevelCompletion
Source§fn clone(&self) -> LevelCompletion
fn clone(&self) -> LevelCompletion
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LevelCompletion
impl Debug for LevelCompletion
Source§impl<'de> Deserialize<'de> for LevelCompletion
impl<'de> Deserialize<'de> for LevelCompletion
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
impl Eq for LevelCompletion
Source§impl PartialEq for LevelCompletion
impl PartialEq for LevelCompletion
Source§impl Serialize for LevelCompletion
impl Serialize for LevelCompletion
impl StructuralPartialEq for LevelCompletion
Auto Trait Implementations§
impl Freeze for LevelCompletion
impl RefUnwindSafe for LevelCompletion
impl Send for LevelCompletion
impl Sync for LevelCompletion
impl Unpin for LevelCompletion
impl UnsafeUnpin for LevelCompletion
impl UnwindSafe for LevelCompletion
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.