#[non_exhaustive]pub enum RegistryValidationErrorV2 {
Show 13 variants
ProfileCount {
found: usize,
},
DuplicateSelection {
selection: ProfileSelection,
},
DuplicateProfileUrn {
urn: &'static str,
},
InvalidAcceptedInputs {
selection: ProfileSelection,
},
InvalidFactInventory {
selection: ProfileSelection,
},
DuplicateSettingDescriptor {
selection: ProfileSelection,
},
InvalidVerifiedDefault {
selection: ProfileSelection,
setting: SettingIdV2,
},
DuplicateSourceId {
selection: ProfileSelection,
source_id: &'static str,
},
UnknownSourceSetting {
selection: ProfileSelection,
source_id: &'static str,
setting: SettingIdV2,
},
UnknownSourceFact {
selection: ProfileSelection,
source_id: &'static str,
fact: EngineFactIdV2,
},
UnreferencedAcceptedInputs {
selection: ProfileSelection,
},
UnreferencedFact {
selection: ProfileSelection,
fact: EngineFactIdV2,
},
UnreferencedSetting {
selection: ProfileSelection,
setting: SettingIdV2,
},
}Expand description
Author-owned invariant failure in the revision-2 registry.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ProfileCount
The registry does not contain the authorized V2 profile set.
DuplicateSelection
Two records use the same exact tuple.
Fields
selection: ProfileSelectionRepeated selection.
DuplicateProfileUrn
Two records use the same stable record URN.
InvalidAcceptedInputs
Accepted inputs are empty, repeated, or not canonically sorted.
Fields
selection: ProfileSelectionAffected selection.
InvalidFactInventory
The record does not contain every V2 fact exactly once.
Fields
selection: ProfileSelectionAffected selection.
DuplicateSettingDescriptor
A setting descriptor id is repeated.
Fields
selection: ProfileSelectionAffected selection.
InvalidVerifiedDefault
A verified default does not match its descriptor domain.
DuplicateSourceId
A primary-source id is repeated within one profile.
UnknownSourceSetting
A source references a setting absent from the record.
UnknownSourceFact
A source references an absent or non-known fact.
Fields
selection: ProfileSelectionAffected selection.
fact: EngineFactIdV2Missing or non-known fact.
UnreferencedAcceptedInputs
Accepted inputs have no primary authority.
Fields
selection: ProfileSelectionAffected selection.
UnreferencedFact
A known fact has no supporting primary authority.
UnreferencedSetting
A descriptor has no supporting primary authority.
Trait Implementations§
Source§impl Clone for RegistryValidationErrorV2
impl Clone for RegistryValidationErrorV2
Source§fn clone(&self) -> RegistryValidationErrorV2
fn clone(&self) -> RegistryValidationErrorV2
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 RegistryValidationErrorV2
impl Debug for RegistryValidationErrorV2
Source§impl Display for RegistryValidationErrorV2
impl Display for RegistryValidationErrorV2
impl Eq for RegistryValidationErrorV2
Source§impl Error for RegistryValidationErrorV2
impl Error for RegistryValidationErrorV2
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()