pub struct PracticeAttempt {
pub id: PracticeAttemptId,
pub task: TaskId,
pub solution: Option<SolutionId>,
pub outcome: Option<LocalVerdict>,
pub started_at: SystemTime,
pub finished_at: Option<SystemTime>,
}Expand description
A recorded attempt at a task outside a rated contest.
Fields§
§id: PracticeAttemptIdAttempt identifier.
task: TaskIdTask attempted.
solution: Option<SolutionId>Solution used, when one was recorded.
outcome: Option<LocalVerdict>Best local outcome observed during the attempt.
started_at: SystemTimeWhen the attempt started.
finished_at: Option<SystemTime>When the attempt ended, if it has.
Trait Implementations§
Source§impl Clone for PracticeAttempt
impl Clone for PracticeAttempt
Source§impl Debug for PracticeAttempt
impl Debug for PracticeAttempt
Source§impl<'de> Deserialize<'de> for PracticeAttempt
impl<'de> Deserialize<'de> for PracticeAttempt
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 PracticeAttempt
impl PartialEq for PracticeAttempt
Source§impl Serialize for PracticeAttempt
impl Serialize for PracticeAttempt
impl StructuralPartialEq for PracticeAttempt
Auto Trait Implementations§
impl Forget for PracticeAttempt
impl Freeze for PracticeAttempt
impl Move for PracticeAttempt
impl RefUnwindSafe for PracticeAttempt
impl Send for PracticeAttemptwhere
RawVecInner: Send,
impl Sync for PracticeAttemptwhere
RawVecInner: Sync,
impl Unpin for PracticeAttempt
impl UnsafeUnpin for PracticeAttempt
impl UnwindSafe for PracticeAttemptwhere
RawVecInner: UnwindSafe,
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