pub struct Schema {
pub classes: &'static [ClassDef],
pub profiles: &'static [(&'static str, &'static str)],
pub namespaces: &'static [(&'static str, &'static str)],
pub enums: &'static [EnumDef],
}Expand description
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).
Fields§
§classes: &'static [ClassDef]§profiles: &'static [(&'static str, &'static str)]Profile code → profile URI, the value a dataset’s header declares; sorted by code.
namespaces: &'static [(&'static str, &'static str)]XML prefix → namespace IRI; sorted by prefix.
enums: &'static [EnumDef]Enumerations, sorted by name.
Implementations§
Source§impl Schema
impl Schema
Sourcepub fn enumeration(&self, name: &str) -> Option<&'static EnumDef>
pub fn enumeration(&self, name: &str) -> Option<&'static EnumDef>
The enumeration called name (WindingConnection).
Sourcepub fn enum_value(
&self,
id: &str,
) -> Option<(&'static EnumDef, &'static EnumValueDef)>
pub fn enum_value( &self, id: &str, ) -> Option<(&'static EnumDef, &'static EnumValueDef)>
The enumeration value id names, as the decoder keeps it
(WindingConnection.D), with its enumeration.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Schema
impl RefUnwindSafe for Schema
impl Send for Schema
impl Sync for Schema
impl Unpin for Schema
impl UnsafeUnpin for Schema
impl UnwindSafe for Schema
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