pub enum IdentifierForm {
Name,
Iri,
Unwritable,
}Expand description
How an identifier can be written into a CIM/XML document.
Every UUID answers IdentifierForm::Name; the other forms exist for non-conforming
identifiers kept verbatim (see Mrid).
Variants§
Name
_<id> is an NCName, so rdf:ID/rdf:about="#_<id>" are both available.
Iri
Not a name, but an absolute IRI, so rdf:about="<id>" states it exactly.
This is the realistic non-conforming case: a producer writes a cross-document
reference as rdf:about="http://host/EQ.xml#Sub1", whose fragment is not a UUID, so
the identifier stays opaque in one piece and cannot become an NCName.
Unwritable
Neither. No conforming RDF/XML serialization of this identifier exists.
The writer still emits the identifier — losing the object would be worse, and the
document remains well-formed XML — but the result is not valid RDF/XML, and
validate says so as
Rule::UnserializableIdentifier.
Trait Implementations§
Source§impl Clone for IdentifierForm
impl Clone for IdentifierForm
impl Copy for IdentifierForm
Source§impl Debug for IdentifierForm
impl Debug for IdentifierForm
impl Eq for IdentifierForm
Source§impl PartialEq for IdentifierForm
impl PartialEq for IdentifierForm
impl StructuralPartialEq for IdentifierForm
Auto Trait Implementations§
impl Forget for IdentifierForm
impl Freeze for IdentifierForm
impl Move for IdentifierForm
impl RefUnwindSafe for IdentifierForm
impl Send for IdentifierForm
impl Sync for IdentifierForm
impl Unpin for IdentifierForm
impl UnsafeUnpin for IdentifierForm
impl UnwindSafe for IdentifierForm
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.