pub struct ContextBlock {
pub id: BlockId,
pub sequence: BlockSequence,
pub content: BlockContent,
pub meta: BlockMeta,
}Expand description
A typed fact. Three axes: identity, content, envelope provenance.
Fields§
§id: BlockIdIdentity axis: the owning turn’s id plus the block’s sequence
(always equal to sequence).
sequence: BlockSequencePosition of the block within its turn: zero-based, increasing by
one per block; mirrors id.sequence.
content: BlockContentContent axis: the typed fact payload.
meta: BlockMetaEnvelope provenance axis; serde-additive, defaulting when absent.
Trait Implementations§
Source§impl Clone for ContextBlock
impl Clone for ContextBlock
Source§fn clone(&self) -> ContextBlock
fn clone(&self) -> ContextBlock
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 ContextBlock
impl Debug for ContextBlock
Source§impl<'de> Deserialize<'de> for ContextBlock
impl<'de> Deserialize<'de> for ContextBlock
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
Auto Trait Implementations§
impl Freeze for ContextBlock
impl RefUnwindSafe for ContextBlock
impl Send for ContextBlock
impl Sync for ContextBlock
impl Unpin for ContextBlock
impl UnsafeUnpin for ContextBlock
impl UnwindSafe for ContextBlock
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