pub enum GateReason {
Administrative,
Purge,
}Expand description
Why an account is gated.
The distinction is not cosmetic: it is what decides whether the row has a deadline, and therefore whether a crash brings the account back on its own.
Variants§
Administrative
Somebody decided. An operator suspending an account, monetize locking a non-paying customer out. No deadline; it stays until it is lifted.
Purge
A purge is holding it. Carries AccountGate::expires and is
re-stamped by the worker; see the module docs.
Implementations§
Trait Implementations§
Source§impl Clone for GateReason
impl Clone for GateReason
impl Copy for GateReason
Source§impl Debug for GateReason
impl Debug for GateReason
Source§impl<'de> Deserialize<'de> for GateReason
impl<'de> Deserialize<'de> for GateReason
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 GateReason
Source§impl PartialEq for GateReason
impl PartialEq for GateReason
Source§impl Serialize for GateReason
impl Serialize for GateReason
impl StructuralPartialEq for GateReason
Auto Trait Implementations§
impl Freeze for GateReason
impl RefUnwindSafe for GateReason
impl Send for GateReason
impl Sync for GateReason
impl Unpin for GateReason
impl UnsafeUnpin for GateReason
impl UnwindSafe for GateReason
Blanket Implementations§
impl<T> Allocation for T
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
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
Compare self to
key and return true if they are equal.