Skip to main content

Module base

Module base 

Source

Structs§

AttrDef
One attribute of a class, as the schema declares it.
ClassDef
A class of the schema: what it is called and what it declares.
Element
One decoded CIM object: its class, its mRID, and its fields as written.
EnumDef
An enumeration of the schema and the values it allows.
EnumValueDef
One value of an enumeration.
FastHasher
A fast, non-cryptographic hasher for the decoder’s maps.
Schema
What one family’s schema says, as a table: its classes, the profiles it defines and the namespaces its vocabularies bind. Generated by cimgen, or read from RDFS at runtime (schema_source).
TypeRegistry
Namespace-aware class lookup, and every attribute each class declares.

Enums§

AttrKind
How an attribute’s value is carried in RDF/XML.
FieldValue

Constants§

LANG_KEY
The JSON key of an element’s language tags (Element::to_json_value).

Functions§

foreign_class
The class of an object no class table knows — a SKOS concept, a PROV agent, a DCAT catalogue — named by its namespace and local name. One leaked ClassDef per distinct class, kept for the process like intern’s keys. Its qualified name is the class IRI, which no family’s by_type keys use.
intern
The one &'static copy of a field key the class tables do not hold — an attribute the element’s class does not declare, as written in the file or set from JSON. Each distinct key is leaked once and kept for the process; there are as many as distinct undeclared attribute names, not fields.

Type Aliases§

FastBuildHasher
FastMap
FastSet
FieldMap
An element’s fields, keyed by Class.attr. Keys are &'static: a declared attribute’s key is its id in the class table, any other goes through intern, so a key is allocated once per process rather than per field.