pub enum ReversalStatus {
Unknown,
NotReversed,
Reversed {
at: DateTime<Utc>,
by_appeal: AppealId,
},
}Expand description
Whether a moderation action was reversed on appeal.
Modelled as a three-state enum rather than an Option<DateTime>
because “we don’t know” and “it stands” must not be the same value. An
appeal that overturned an action, rendered to a later reviewer as
though the action still stands, is prejudicial in exactly the way
GOV-2026-0005 forbids — and an Option read as None says “not
reversed” with total confidence and no evidence.
Variants§
Unknown
The pipeline cannot determine reversal status. Not evidence that the action stands.
NotReversed
The action was not reversed.
Reversed
The action was reversed on appeal.
Implementations§
Source§impl ReversalStatus
impl ReversalStatus
Sourcepub fn known_standing(&self) -> bool
pub fn known_standing(&self) -> bool
True only when we affirmatively know the action still stands.
Unknown returns false: a reviewer weighing an
agent’s record should not count an action whose status we cannot
establish.
Trait Implementations§
Source§impl Clone for ReversalStatus
impl Clone for ReversalStatus
Source§impl Debug for ReversalStatus
impl Debug for ReversalStatus
Source§impl<'de> Deserialize<'de> for ReversalStatus
impl<'de> Deserialize<'de> for ReversalStatus
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>,
impl Eq for ReversalStatus
Source§impl PartialEq for ReversalStatus
impl PartialEq for ReversalStatus
Source§impl Serialize for ReversalStatus
impl Serialize for ReversalStatus
impl StructuralPartialEq for ReversalStatus
Auto Trait Implementations§
impl Freeze for ReversalStatus
impl RefUnwindSafe for ReversalStatus
impl Send for ReversalStatus
impl Sync for ReversalStatus
impl Unpin for ReversalStatus
impl UnsafeUnpin for ReversalStatus
impl UnwindSafe for ReversalStatus
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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
key and return true if they are equal.