pub enum AttrKind {
Primitive(Primitive),
Datatype(DatatypeId),
Enumeration(EnumId),
Compound(ClassId),
Association {
target: ClassId,
inverse: Option<AttrId>,
},
}Expand description
What an attribute holds.
Variants§
Primitive(Primitive)
A plain primitive value.
Datatype(DatatypeId)
A unit-carrying CIM datatype such as Resistance; serialized as its primitive.
Enumeration(EnumId)
An enumeration; serialized as rdf:resource pointing at Enum.literal.
Compound(ClassId)
A structured value with no identity of its own (cims:stereotype Compound).
IEC 61970-552 gives compounds no rdf:ID, so they are written inside the
property element as rdf:parseType="Resource" rather than referenced. The
ClassId names the compound’s type, whose attributes describe its fields.
Association
A reference to another object; serialized as rdf:resource to its mRID.
Trait Implementations§
impl Copy for AttrKind
impl Eq for AttrKind
impl StructuralPartialEq for AttrKind
Auto Trait Implementations§
impl Forget for AttrKind
impl Freeze for AttrKind
impl Move for AttrKind
impl RefUnwindSafe for AttrKind
impl Send for AttrKind
impl Sync for AttrKind
impl Unpin for AttrKind
impl UnsafeUnpin for AttrKind
impl UnwindSafe for AttrKind
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
Mutably borrows from an owned value. Read more
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
Compare self to
key and return true if they are equal.