pub enum Verdict {
Correct,
Incorrect {
hint: Option<Hint>,
wait: Option<Duration>,
},
Cooldown {
wait: Duration,
},
WrongLevel,
}Expand description
The site’s response to a submitted answer.
Variants§
Correct
The answer was accepted, or is the one already accepted for a part that was solved earlier.
Incorrect
The answer was rejected.
Fields
Cooldown
Nothing was judged, because an answer was submitted too recently. This answer still has to be sent again once the wait is over.
WrongLevel
The site was not asking for an answer to that part - either part one is still unsolved, or the part was never a question, which is day 25’s second star.
Implementations§
Trait Implementations§
impl Eq for Verdict
impl StructuralPartialEq for Verdict
Auto Trait Implementations§
impl Freeze for Verdict
impl RefUnwindSafe for Verdict
impl Send for Verdict
impl Sync for Verdict
impl Unpin for Verdict
impl UnsafeUnpin for Verdict
impl UnwindSafe for Verdict
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,
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.