pub struct AttrDef {
pub id: &'static str,
pub ns: &'static str,
pub kind: AttrKind,
pub range: &'static str,
pub is_list: bool,
pub used: bool,
pub xsd: &'static str,
pub value_ns: &'static str,
pub origins: &'static [&'static str],
pub comment: &'static str,
}Expand description
One attribute of a class, as the schema declares it.
Fields§
§id: &'static strClass.attr, matching the key in Element::fields.
ns: &'static strThe attribute’s RDF namespace: its predicate IRI is ns + id.
kind: AttrKind§range: &'static strThe CIM datatype of a literal; the class an association or enumeration points to.
is_list: bool§used: boolWhether a profile exchanges this end of the association — false for the
inverse ends the vocabularies declare but no dataset writes. Literals and
enumerations are always used.
xsd: &'static strThe XSD datatype of a literal, as the local name after
http://www.w3.org/2001/XMLSchema# ("double"); "" otherwise.
value_ns: &'static strThe namespace of an enumeration’s values (the decoder keeps a value after
its #); "" otherwise.
origins: &'static [&'static str]Profile codes that carry this attribute.
comment: &'static strThe vocabulary’s rdfs:comment, HTML removed and on one line; ""
if it has none.
Trait Implementations§
Auto Trait Implementations§
impl Forget for AttrDef
impl Freeze for AttrDef
impl RefUnwindSafe for AttrDef
impl Send for AttrDef
impl Sync for AttrDef
impl Unpin for AttrDef
impl UnsafeUnpin for AttrDef
impl UnwindSafe for AttrDef
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