#[repr(u16)]pub enum ObjectType {
Patch = 1,
Block = 2,
RefState = 3,
RefUpdate = 4,
Tag = 5,
Attestation = 6,
Blob = 7,
BlockSummaryCache = 8,
RecoveryNote = 9,
RecognitionClaim = 11,
}Expand description
A Prikk object type code.
Variants§
Patch = 1
Patch object.
Block = 2
Block object.
RefState = 3
RefState object.
RefUpdate = 4
RefUpdate event. Object-envelope type stored inline in refs/logs/
(journal then log), not a permanent object-store directory.
Tag = 5
Tag object.
Attestation = 6
Attestation object.
Blob = 7
Blob object.
BlockSummaryCache = 8
Rebuildable block-summary cache. Uses the canonical codec for reproducibility but is never a root of trust or part of block identity.
RecoveryNote = 9
Signed doctor-repair note stored inline in refs/recovery/. Never a
RefUpdate substitute (FDD-02 §10.4).
RecognitionClaim = 11
RFC 115 Stage 2 (design-v1.md D3): a signed claim that named patches were sealed into a
named block, under the signer’s key. Never trust-conferring and never existence-checked
against the block/patches it names — see RecognitionClaimPayload’s own doc.
Implementations§
Source§impl ObjectType
impl ObjectType
Sourcepub const ALL: &'static [Self]
pub const ALL: &'static [Self]
Every live variant, in declaration order. Generated by this enum’s own defining
macro invocation, not a second, independently maintained list – see
id/tests.rs’s a_new_variant_reaches_every_generated_consumer-style controls for
why that matters: a hand-written ALL cannot be forced to grow when a variant is
added, only a match can, and ALL is not a match.
Trait Implementations§
Source§impl Clone for ObjectType
impl Clone for ObjectType
Source§fn clone(&self) -> ObjectType
fn clone(&self) -> ObjectType
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more