pub struct ActivityRecord {
pub schema_version: u16,
pub shell_id: ShellId,
pub actor: ActorId,
pub verb: VerbCode,
pub target: TargetKind,
pub at_tick: Tick,
pub status: ActivityStatus,
pub extra_bytes: Bytes,
}Expand description
Storage-safe Activity record. 'static, postcard-DeserializeOwned,
brand-free — this is what the WAL stores and observers read (C1 contract).
Fields§
§schema_version: u16Wire-level schema version tag.
shell_id: ShellIdShell identity — double-checked on replay vs ActorProfile.shell_id.
actor: ActorIdActing actor.
verb: VerbCodeVerb code.
target: TargetKindTarget descriptor.
at_tick: TickEmission tick.
status: ActivityStatusLifecycle status.
extra_bytes: BytesShell-defined opaque payload. Runtime does not interpret — schema
change implies a new VerbCode (E-act-3).
Trait Implementations§
Source§impl ArkheComponent for ActivityRecord
impl ArkheComponent for ActivityRecord
Source§const TYPE_CODE: u32 = 197633u32
const TYPE_CODE: u32 = 197633u32
Globally stable dispatch code within the runtime
TypeCode registry.Source§const SCHEMA_VERSION: u16 = 1u16
const SCHEMA_VERSION: u16 = 1u16
Monotone schema version. Bump on field addition (
#[serde(default)]
paired); field removal / reorder forbidden.Source§fn approx_size(&self) -> usize
fn approx_size(&self) -> usize
Approximate payload size for quota tracking. Default returns
size_of::<Self>(); override for bytes::Bytes-carrying Components.Source§impl Clone for ActivityRecord
impl Clone for ActivityRecord
Source§fn clone(&self) -> ActivityRecord
fn clone(&self) -> ActivityRecord
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 ActivityRecord
impl Debug for ActivityRecord
Source§impl<'de> Deserialize<'de> for ActivityRecord
impl<'de> Deserialize<'de> for ActivityRecord
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 ActivityRecord
impl PartialEq for ActivityRecord
Source§fn eq(&self, other: &ActivityRecord) -> bool
fn eq(&self, other: &ActivityRecord) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ActivityRecord
impl Serialize for ActivityRecord
impl Eq for ActivityRecord
impl StructuralPartialEq for ActivityRecord
Auto Trait Implementations§
impl !Freeze for ActivityRecord
impl RefUnwindSafe for ActivityRecord
impl Send for ActivityRecord
impl Sync for ActivityRecord
impl Unpin for ActivityRecord
impl UnsafeUnpin for ActivityRecord
impl UnwindSafe for ActivityRecord
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