pub enum IntegrityError {
HashMismatch {
expected: String,
actual: String,
entity_id: String,
},
MissingReference {
reference_id: String,
referenced_by: String,
},
OrphanedData {
entity_id: String,
entity_type: String,
},
VersionInconsistency {
entity_id: String,
expected_version: u64,
actual_version: u64,
},
IndexCorruption {
index_name: String,
corruption_type: String,
details: String,
},
SizeMismatch {
entity_id: String,
expected_size: u64,
actual_size: u64,
},
TimestampInconsistency {
entity_id: String,
issue: String,
},
DuplicateEntries {
entity_ids: Vec<String>,
duplicate_field: String,
},
}Expand description
Types of integrity errors
Variants§
HashMismatch
Hash mismatch detected
MissingReference
Missing reference
OrphanedData
Orphaned data
VersionInconsistency
Version inconsistency
IndexCorruption
Index corruption
SizeMismatch
Data size mismatch
TimestampInconsistency
Timestamp inconsistency
DuplicateEntries
Duplicate entries
Trait Implementations§
Source§impl Clone for IntegrityError
impl Clone for IntegrityError
Source§fn clone(&self) -> IntegrityError
fn clone(&self) -> IntegrityError
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 IntegrityError
impl Debug for IntegrityError
Source§impl<'de> Deserialize<'de> for IntegrityError
impl<'de> Deserialize<'de> for IntegrityError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for IntegrityError
impl PartialEq for IntegrityError
Source§impl Serialize for IntegrityError
impl Serialize for IntegrityError
impl StructuralPartialEq for IntegrityError
Auto Trait Implementations§
impl Freeze for IntegrityError
impl RefUnwindSafe for IntegrityError
impl Send for IntegrityError
impl Sync for IntegrityError
impl Unpin for IntegrityError
impl UnwindSafe for IntegrityError
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