pub struct ShardManifest {
pub shard_name: String,
pub event_count: u64,
pub byte_len: u64,
pub file_hash: String,
}Expand description
Manifest for a sealed shard file, recording integrity metadata.
Fields§
§shard_name: StringShard file name (e.g., "2026-01.events").
event_count: u64Number of event lines (excluding comments and blanks).
byte_len: u64Total byte length of the shard file.
file_hash: StringBLAKE3 hash of the entire shard file contents.
Implementations§
Source§impl ShardManifest
impl ShardManifest
Sourcepub fn to_string_repr(&self) -> String
pub fn to_string_repr(&self) -> String
Serialize manifest to a human-readable format.
Sourcepub fn from_string_repr(s: &str) -> Option<Self>
pub fn from_string_repr(s: &str) -> Option<Self>
Parse a manifest from its string representation.
Returns None if required fields are missing or unparseable.
Trait Implementations§
Source§impl Clone for ShardManifest
impl Clone for ShardManifest
Source§fn clone(&self) -> ShardManifest
fn clone(&self) -> ShardManifest
Returns a duplicate of the value. Read more
1.0.0 · 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 ShardManifest
impl Debug for ShardManifest
Source§impl PartialEq for ShardManifest
impl PartialEq for ShardManifest
impl Eq for ShardManifest
impl StructuralPartialEq for ShardManifest
Auto Trait Implementations§
impl Freeze for ShardManifest
impl RefUnwindSafe for ShardManifest
impl Send for ShardManifest
impl Sync for ShardManifest
impl Unpin for ShardManifest
impl UnsafeUnpin for ShardManifest
impl UnwindSafe for ShardManifest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.