pub struct TagPayload {
pub name: String,
pub target_block_id: ObjectId,
pub message: Option<String>,
pub created_at: u64,
pub author_key_id: String,
pub patch_set_digest: PatchSetDigest,
pub patch_count: u64,
}Expand description
Immutable tag payload.
Fields§
§name: StringTag name.
target_block_id: ObjectIdTarget block ID – the local pointer half of the tag’s identity.
message: Option<String>Tag message (optional per FDD-03 §9.8).
created_at: u64Canonical no-clock sentinel, matching RefUpdatePayload.created_at (DC-34 “RefUpdate time
policy”): zero in every production write, never an authoritative event-time claim. This
project has no trusted clock; a real timestamp would require a versioned schema and a
persistence design.
Author key ID.
patch_set_digest: PatchSetDigestThe digest of target_block_id’s own patch closure (RFC 117 T1) – the global-identity half
of the tag, portable across repositories that hold the same patches. Required: a tag without
one would be the old tag with extra steps.
patch_count: u64The number of distinct patch ids in the closure patch_set_digest covers (RFC 117 T7) –
already part of what the digest hashes, exposed here so resolution can prune by size before
hashing a candidate. A hint that narrows, never an authority: the digest still decides.
Implementations§
Source§impl TagPayload
impl TagPayload
Sourcepub fn decode_canonical(bytes: &[u8]) -> Result<Self>
pub fn decode_canonical(bytes: &[u8]) -> Result<Self>
Decode a Tag payload from Prikk canonical TLV bytes.
Trait Implementations§
Source§impl CanonicalEncode for TagPayload
impl CanonicalEncode for TagPayload
Source§fn encode_canonical(&self, writer: &mut CanonicalWriter) -> Result<()>
fn encode_canonical(&self, writer: &mut CanonicalWriter) -> Result<()>
Source§impl Clone for TagPayload
impl Clone for TagPayload
Source§fn clone(&self) -> TagPayload
fn clone(&self) -> TagPayload
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more