#[non_exhaustive]pub enum RegistryValidationError {
Show 14 variants
ProfileCount {
found: usize,
},
DuplicateSelection {
selection: ProfileSelection,
},
DuplicateFactBundleUrn {
urn: &'static str,
},
InvalidFactInventory {
selection: ProfileSelection,
},
InvalidAcceptedInputFact {
selection: ProfileSelection,
},
DuplicateSettingDescriptor {
selection: ProfileSelection,
},
InvalidDescriptorDefault {
selection: ProfileSelection,
setting: SettingId,
},
DuplicateSourceId {
selection: ProfileSelection,
source_id: &'static str,
},
UnknownSourceFact {
selection: ProfileSelection,
source_id: &'static str,
fact: FactId,
},
SourceReferencesNonKnownFact {
selection: ProfileSelection,
source_id: &'static str,
fact: FactId,
},
UnknownSourceSetting {
selection: ProfileSelection,
source_id: &'static str,
setting: SettingId,
},
UnreferencedKnownFact {
selection: ProfileSelection,
fact: FactId,
},
UnreferencedSetting {
selection: ProfileSelection,
setting: SettingId,
},
FactsIdentityMismatch {
selection: ProfileSelection,
},
}Expand description
Author-owned invariant failure in the built-in V1 registry.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ProfileCount
V1 did not contain exactly five singleton profiles.
DuplicateSelection
Two records use the same exact selection.
Fields
selection: ProfileSelectionRepeated selection.
DuplicateFactBundleUrn
Two records use the same revisioned fact-bundle URN.
InvalidFactInventory
The record does not enumerate every stable V1 fact id exactly once.
Fields
selection: ProfileSelectionAffected selection.
InvalidAcceptedInputFact
The accepted-input fact is not a nonempty canonical known-format set.
Fields
selection: ProfileSelectionAffected selection.
DuplicateSettingDescriptor
A setting descriptor id is repeated.
Fields
selection: ProfileSelectionAffected selection.
InvalidDescriptorDefault
Applicability and default status contradict each other.
DuplicateSourceId
A primary-source id is repeated within one profile.
UnknownSourceFact
A source references a fact outside the record vocabulary.
Fields
selection: ProfileSelectionAffected selection.
SourceReferencesNonKnownFact
A source claims support for a fact whose record state is not known.
Fields
selection: ProfileSelectionAffected selection.
UnknownSourceSetting
A source references a setting absent from the record.
Fields
selection: ProfileSelectionAffected selection.
UnreferencedKnownFact
A known fact has no supporting primary-source reference.
UnreferencedSetting
A descriptor has no supporting primary-source reference.
FactsIdentityMismatch
The stored record identity differs from a fresh canonical encoding.
Fields
selection: ProfileSelectionAffected selection.
Trait Implementations§
Source§impl Clone for RegistryValidationError
impl Clone for RegistryValidationError
Source§fn clone(&self) -> RegistryValidationError
fn clone(&self) -> RegistryValidationError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RegistryValidationError
impl Debug for RegistryValidationError
Source§impl Display for RegistryValidationError
impl Display for RegistryValidationError
impl Eq for RegistryValidationError
Source§impl Error for RegistryValidationError
impl Error for RegistryValidationError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()