#[repr(C)]pub struct ProvenanceMiniHeader {}Expand description
The 80-byte ProvenanceSidecar-section mini-header. repr(C), naturally
aligned, no implicit padding.
offset size field
0 4 magic:u32 (PROVENANCE_MAGIC)
4 2 version:u16 (PROVENANCE_SECTION_VERSION)
6 2 flags:u16 (bit 0 = a VC is present)
8 4 source_digest:u32 (CRC-32C over source_bytes — the gate anchor)
12 4 reserved_u32 (must be zero) - moves before u64 to align to 16
16 8 timestamp_epoch_s:u64 (Date of harvest/authoring)
24 32 version_hash:[u8; 32] (Cryptographic version control hash e.g., SHA256)
56 4 source_len:u32
60 4 media_len:u32 (source media-type utf8 length)
64 4 licence_len:u32
68 4 vc_len:u32
72 4 metadata_len:u32 (Schema.org / Dublin Core semantic JSON-LD length)
76 4 reserved_pad:u32 (padding for 80-byte alignment)Fields§
§magic: u32§version: u16§flags: u16§source_digest: u32§reserved_u32: u32§timestamp_epoch_s: u64§version_hash: [u8; 32]§source_len: u32§media_len: u32§licence_len: u32§vc_len: u32§metadata_len: u32§reserved_pad: u32Trait Implementations§
Source§impl Clone for ProvenanceMiniHeader
impl Clone for ProvenanceMiniHeader
Source§fn clone(&self) -> ProvenanceMiniHeader
fn clone(&self) -> ProvenanceMiniHeader
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 ProvenanceMiniHeader
impl Debug for ProvenanceMiniHeader
Source§impl PartialEq for ProvenanceMiniHeader
impl PartialEq for ProvenanceMiniHeader
Source§fn eq(&self, other: &ProvenanceMiniHeader) -> bool
fn eq(&self, other: &ProvenanceMiniHeader) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ProvenanceMiniHeader
impl Eq for ProvenanceMiniHeader
impl Pod for ProvenanceMiniHeader
impl StructuralPartialEq for ProvenanceMiniHeader
Auto Trait Implementations§
impl Freeze for ProvenanceMiniHeader
impl RefUnwindSafe for ProvenanceMiniHeader
impl Send for ProvenanceMiniHeader
impl Sync for ProvenanceMiniHeader
impl Unpin for ProvenanceMiniHeader
impl UnsafeUnpin for ProvenanceMiniHeader
impl UnwindSafe for ProvenanceMiniHeader
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more