pub enum Rule {
Show 22 variants
UnknownClass,
UnknownAttribute,
InvalidValue,
NonConformingMrid,
DuplicateMrid,
DanglingReference,
MissingRequired,
CardinalityExceeded,
WrongReferenceTarget,
AttributeNotInProfile,
AbstractInstantiated,
Deprecated,
MalformedHeader,
UnsatisfiedDependency,
Structure,
DatatypeMismatch,
FixedValueMismatch,
ConflictingValue,
IllegalXmlCharacter,
UnreadableFile,
WrongVintage,
UnserializableIdentifier,
}Variants§
UnknownClass
An element names a class the schema does not define.
UnknownAttribute
An element names an attribute the schema does not define for its class.
InvalidValue
An attribute value could not be parsed as its declared type.
NonConformingMrid
An identifier is not a UUID, as IEC 61970-552 requires.
DuplicateMrid
Two objects share an mRID.
DanglingReference
A reference points at an object not present in the dataset.
MissingRequired
A required attribute is missing.
CardinalityExceeded
An attribute occurs more often than its multiplicity permits.
WrongReferenceTarget
A reference points at an object of the wrong class.
AttributeNotInProfile
An attribute is used outside the profiles that declare it.
AbstractInstantiated
An abstract class was instantiated.
Deprecated
A deprecated element is in use.
MalformedHeader
The file header is missing or incomplete.
UnsatisfiedDependency
A header declares a dependency that was not loaded; or a change set’s base or precondition is not satisfied, and it was not applied.
Structure
A structural problem in the document that did not prevent reading.
DatatypeMismatch
A stored value does not have the shape its attribute declares.
CIM/XML carries no datatype information, so this is only detectable against the schema (e.g. text where a float is declared, or another enumeration’s literal).
FixedValueMismatch
An attribute the schema pins with cims:isFixed carries a different value.
ConflictingValue
Two loaded files gave different values for one single-valued attribute.
Merging keeps one value and discards the other; see Dataset::merge_conflicts.
IllegalXmlCharacter
A value holds a character XML 1.0 cannot represent.
XML’s Char production excludes most of the C0 range, even as a character
reference, so it cannot be written at all. The reader strips such characters and
reports them; validation also flags values set through the API.
UnreadableFile
A file in the model set could not be read at all.
Under Strictness::Lenient the load records
this and reads the remaining files; under Strict it is an Error.
WrongVintage
The document is written against a different schema vintage than the one reading it.
Detected from the root’s namespaces (…/CIM100# for CGMES 3.0,
…/CIM-schema-cim16# for 2.4.15), reported once instead of one CIM0001 per element.
UnserializableIdentifier
An identifier has no valid RDF/XML serialization.
rdf:ID is an XML NCName and rdf:about an IRI reference; every UUID is fine.
An identifier that is neither (one containing a space, say) is still written, but
the document is not valid RDF/XML, though it is well-formed XML.
Implementations§
Trait Implementations§
impl Copy for Rule
impl Eq for Rule
Source§impl Ord for Rule
impl Ord for Rule
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialOrd for Rule
impl PartialOrd for Rule
impl StructuralPartialEq for Rule
Auto Trait Implementations§
impl Forget for Rule
impl Freeze for Rule
impl Move for Rule
impl RefUnwindSafe for Rule
impl Send for Rule
impl Sync for Rule
impl Unpin for Rule
impl UnsafeUnpin for Rule
impl UnwindSafe for Rule
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> Comparable<K> for Q
impl<Q, K> Comparable<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.