pub enum AttemptOutcome {
Pending,
Rejected {
actor: ActorId,
at: DateTime<Utc>,
reason: String,
},
Verified {
actor: ActorId,
at: DateTime<Utc>,
},
}Expand description
Independent review result of one submission attempt.
Variants§
Pending
Awaiting independent review.
Rejected
Returned for rework; the attempt stays in history and never becomes valid again.
Fields
Verified
Accepted by an independent verifier.
Implementations§
Source§impl AttemptOutcome
impl AttemptOutcome
Sourcepub fn pending_at(&self, now: DateTime<Utc>) -> bool
pub fn pending_at(&self, now: DateTime<Utc>) -> bool
Whether the attempt still awaited review at now: a start recorded before a later review
relied on an unreviewed result, whatever the review has since decided.
Trait Implementations§
Source§impl Clone for AttemptOutcome
impl Clone for AttemptOutcome
Source§impl Debug for AttemptOutcome
impl Debug for AttemptOutcome
Source§impl<'de> Deserialize<'de> for AttemptOutcome
impl<'de> Deserialize<'de> for AttemptOutcome
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 AttemptOutcome
Source§impl PartialEq for AttemptOutcome
impl PartialEq for AttemptOutcome
Source§impl Serialize for AttemptOutcome
impl Serialize for AttemptOutcome
impl StructuralPartialEq for AttemptOutcome
Auto Trait Implementations§
impl Freeze for AttemptOutcome
impl RefUnwindSafe for AttemptOutcome
impl Send for AttemptOutcome
impl Sync for AttemptOutcome
impl Unpin for AttemptOutcome
impl UnsafeUnpin for AttemptOutcome
impl UnwindSafe for AttemptOutcome
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