pub struct ActivityDraft {
pub schema_version: u16,
pub shell_id: ShellId,
pub verb: VerbCode,
pub target: TargetKind,
pub at_tick: Tick,
pub status: ActivityStatus,
pub extra_bytes: Bytes,
}Expand description
Wire-format Activity details MINUS the acting actor. The acting actor is
NOT a wire field: the runtime injects the authenticated identity at the
dispatch boundary, and SubmitActivity::compute stamps it into the
stored ActivityRecord. This is the structural close of the
actor-substitution surface — there is no client-supplied actor to spoof.
The Activity’s TARGET (which may reference another actor) stays here: a target is legitimate data, not the ACTING identity.
Fields§
§schema_version: u16Wire-level schema version tag.
shell_id: ShellIdShell identity — double-checked on replay vs ActorProfile.shell_id.
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 Clone for ActivityDraft
impl Clone for ActivityDraft
Source§fn clone(&self) -> ActivityDraft
fn clone(&self) -> ActivityDraft
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 ActivityDraft
impl Debug for ActivityDraft
Source§impl<'de> Deserialize<'de> for ActivityDraft
impl<'de> Deserialize<'de> for ActivityDraft
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 ActivityDraft
impl PartialEq for ActivityDraft
Source§fn eq(&self, other: &ActivityDraft) -> bool
fn eq(&self, other: &ActivityDraft) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ActivityDraft
impl Serialize for ActivityDraft
impl Eq for ActivityDraft
impl StructuralPartialEq for ActivityDraft
Auto Trait Implementations§
impl !Freeze for ActivityDraft
impl RefUnwindSafe for ActivityDraft
impl Send for ActivityDraft
impl Sync for ActivityDraft
impl Unpin for ActivityDraft
impl UnsafeUnpin for ActivityDraft
impl UnwindSafe for ActivityDraft
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