pub enum ValidationErrorKind {
Show 18 variants
MalformedTimestamp,
UnknownEventType,
InvalidItemId,
InvalidJson,
OversizedPayload,
MissingField,
HashChainBroken,
TruncatedFile,
InvalidUtf8,
BadFieldCount,
InvalidHashFormat,
InvalidAgent,
EmptyItc,
InvalidParentHash,
ManifestMismatch,
ManifestCountMismatch,
ManifestSizeMismatch,
UnsupportedVersion,
}Expand description
Category of validation failure.
Variants§
MalformedTimestamp
The wall_ts_us field is not a valid integer.
UnknownEventType
The event type string is not a known item.<verb>.
InvalidItemId
The item_id field is not a valid bones ID.
InvalidJson
The data field is not valid JSON or does not match the event type schema.
OversizedPayload
The JSON data payload exceeds MAX_PAYLOAD_BYTES.
MissingField
A required field is missing from the event line.
HashChainBroken
The recomputed BLAKE3 hash does not match event_hash.
TruncatedFile
The shard file appears truncated (incomplete trailing line).
InvalidUtf8
The line is not valid UTF-8.
BadFieldCount
Wrong number of tab-separated fields.
InvalidHashFormat
The event_hash field has an invalid format.
InvalidAgent
The agent field is empty or invalid.
EmptyItc
The itc field is empty.
InvalidParentHash
A parent hash has an invalid format.
ManifestMismatch
Shard file BLAKE3 hash does not match manifest.
ManifestCountMismatch
Shard file event count does not match manifest.
ManifestSizeMismatch
Shard file byte length does not match manifest.
UnsupportedVersion
The shard was written by an unsupported (newer) version of bones.
Trait Implementations§
Source§impl Clone for ValidationErrorKind
impl Clone for ValidationErrorKind
Source§fn clone(&self) -> ValidationErrorKind
fn clone(&self) -> ValidationErrorKind
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ValidationErrorKind
impl Debug for ValidationErrorKind
Source§impl PartialEq for ValidationErrorKind
impl PartialEq for ValidationErrorKind
impl Eq for ValidationErrorKind
impl StructuralPartialEq for ValidationErrorKind
Auto Trait Implementations§
impl Freeze for ValidationErrorKind
impl RefUnwindSafe for ValidationErrorKind
impl Send for ValidationErrorKind
impl Sync for ValidationErrorKind
impl Unpin for ValidationErrorKind
impl UnsafeUnpin for ValidationErrorKind
impl UnwindSafe for ValidationErrorKind
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
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
key and return true if they are equal.