#[non_exhaustive]#[repr(u8)]pub enum ActivityStatus {
Active = 0,
Retracted {
at: Tick,
},
}Expand description
Activity lifecycle status. Retracted entries are tombstoned (E-act-4).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Active = 0
Indexed in the (actor, verb, target.key()) BTreeMap.
Retracted
Removed from the index; preserved as tombstone with retraction tick.
Trait Implementations§
Source§impl Clone for ActivityStatus
impl Clone for ActivityStatus
Source§fn clone(&self) -> ActivityStatus
fn clone(&self) -> ActivityStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ActivityStatus
impl Debug for ActivityStatus
Source§impl<'de> Deserialize<'de> for ActivityStatus
impl<'de> Deserialize<'de> for ActivityStatus
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 ActivityStatus
impl PartialEq for ActivityStatus
Source§fn eq(&self, other: &ActivityStatus) -> bool
fn eq(&self, other: &ActivityStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ActivityStatus
impl Serialize for ActivityStatus
impl Eq for ActivityStatus
impl StructuralPartialEq for ActivityStatus
Auto Trait Implementations§
impl Freeze for ActivityStatus
impl RefUnwindSafe for ActivityStatus
impl Send for ActivityStatus
impl Sync for ActivityStatus
impl Unpin for ActivityStatus
impl UnsafeUnpin for ActivityStatus
impl UnwindSafe for ActivityStatus
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