pub enum IdStyle {
Auto,
RdfId,
RdfAbout,
}Expand description
How to identify objects in the output.
IEC 61970-552 distinguishes the file that introduces an object from a file that adds
to one defined elsewhere, and the RDFS records which is which per class per profile:
a class a profile only refers to carries cims:stereotype Description.
Variants§
Auto
Decide per object from the schema — the correct behaviour, and the default.
An object is written with rdf:ID when some profile in the write set defines
its class (ClassDef::defined_in), and with
rdf:about otherwise. This is not a per-file choice: a Topology file identifies
TopologicalNode with rdf:ID because Topology introduces it, and Terminal with
rdf:about because Equipment did. A single profile keyword cannot express that,
and assuming one silently rewrote 49,255 rdf:IDs as rdf:about in the published
RealGrid State Variables file.
RdfId
Force rdf:ID="_<uuid>" for every object.
RdfAbout
Force rdf:about="#_<uuid>" for every object.
Trait Implementations§
impl Copy for IdStyle
impl Eq for IdStyle
impl StructuralPartialEq for IdStyle
Auto Trait Implementations§
impl Forget for IdStyle
impl Freeze for IdStyle
impl Move for IdStyle
impl RefUnwindSafe for IdStyle
impl Send for IdStyle
impl Sync for IdStyle
impl Unpin for IdStyle
impl UnsafeUnpin for IdStyle
impl UnwindSafe for IdStyle
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.