pub struct RetractActivity {
pub schema_version: u16,
pub activity: ActivityId,
}Expand description
Retract an existing Activity — tombstones its record and removes it from
the (actor, verb, target.key()) idempotency index (E-act-4).
Fields§
§schema_version: u16Wire-level schema version tag.
activity: ActivityIdTarget Activity handle.
Trait Implementations§
Source§impl ActionCompute for RetractActivity
impl ActionCompute for RetractActivity
Source§impl ActionCompute for RetractActivity
impl ActionCompute for RetractActivity
Source§fn compute<'i>(&self, _ctx: &mut ActionContext<'i>) -> Result<(), ActionError>
fn compute<'i>(&self, _ctx: &mut ActionContext<'i>) -> Result<(), ActionError>
Run the compute body. Emit events via
ctx.emit_event, derive new
ids via ctx.next_id, and return Err(ActionError::...) to reject.Source§impl ActionDeriv for RetractActivity
impl ActionDeriv for RetractActivity
Source§impl ArkheAction for RetractActivity
impl ArkheAction for RetractActivity
Source§const SCHEMA_VERSION: u16 = 1u16
const SCHEMA_VERSION: u16 = 1u16
Monotone schema version — bump rules identical to
ArkheComponent.Source§const IDEMPOTENT: bool = false
const IDEMPOTENT: bool = false
Opt-in idempotency flag.
true iff the deriving struct carries an
idempotency_key: Option<[u8; 16]> field (validated at derive time).
false by default — non-idempotent Actions are still legal.Source§impl Clone for RetractActivity
impl Clone for RetractActivity
Source§fn clone(&self) -> RetractActivity
fn clone(&self) -> RetractActivity
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 RetractActivity
impl Debug for RetractActivity
Source§impl<'de> Deserialize<'de> for RetractActivity
impl<'de> Deserialize<'de> for RetractActivity
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 RetractActivity
impl PartialEq for RetractActivity
Source§fn eq(&self, other: &RetractActivity) -> bool
fn eq(&self, other: &RetractActivity) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RetractActivity
impl Serialize for RetractActivity
impl Eq for RetractActivity
impl Sealed for RetractActivity
impl StructuralPartialEq for RetractActivity
Auto Trait Implementations§
impl Freeze for RetractActivity
impl RefUnwindSafe for RetractActivity
impl Send for RetractActivity
impl Sync for RetractActivity
impl Unpin for RetractActivity
impl UnsafeUnpin for RetractActivity
impl UnwindSafe for RetractActivity
Blanket Implementations§
Source§impl<T> Action for Twhere
T: ActionDeriv + ActionCompute,
impl<T> Action for Twhere
T: ActionDeriv + ActionCompute,
Source§fn canonical_bytes(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn canonical_bytes(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Postcard-canonical byte encoding. See
Component::canonical_bytes for the contract; identical
shape applies here.Source§fn from_bytes(version: u32, bytes: &[u8]) -> Result<Box<Self>, DeserializeError>where
Self: Sized,
fn from_bytes(version: u32, bytes: &[u8]) -> Result<Box<Self>, DeserializeError>where
Self: Sized,
Inverse of
canonical_bytes.
SchemaVersionMismatch on unequal version.Source§fn approx_size(&self) -> usizewhere
Self: Sized,
fn approx_size(&self) -> usizewhere
Self: Sized,
Approximate byte size — defaults to encoded length.
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