pub struct OntologyReference {
pub type: Option<String>,
pub id: String,
pub version: Option<String>,
pub uri: Option<String>,
}Expand description
A reference to the ontology a MIF memory conforms to.
Corresponds to $defs.OntologyReference in mif.schema.json. id must
match the ontology.id declared in the referenced ontology definition
(see the three-tier resolution chain: mif-base -> shared-traits ->
domain ontologies, driven by each ontology’s own extends list).
Fields§
§type: Option<String>JSON-LD type marker. Always "OntologyReference" when present;
preserved verbatim across round-trips rather than re-derived, since
the schema declares it optional.
id: StringOntology identifier (^[a-z][a-z0-9-]*$).
version: Option<String>Ontology version (^\d+\.\d+\.\d+.*$).
uri: Option<String>URI to the ontology definition.
Implementations§
Trait Implementations§
Source§impl Clone for OntologyReference
impl Clone for OntologyReference
Source§fn clone(&self) -> OntologyReference
fn clone(&self) -> OntologyReference
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OntologyReference
impl Debug for OntologyReference
Source§impl<'de> Deserialize<'de> for OntologyReference
impl<'de> Deserialize<'de> for OntologyReference
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for OntologyReference
Source§impl PartialEq for OntologyReference
impl PartialEq for OntologyReference
Source§impl Serialize for OntologyReference
impl Serialize for OntologyReference
impl StructuralPartialEq for OntologyReference
Auto Trait Implementations§
impl Freeze for OntologyReference
impl RefUnwindSafe for OntologyReference
impl Send for OntologyReference
impl Sync for OntologyReference
impl Unpin for OntologyReference
impl UnsafeUnpin for OntologyReference
impl UnwindSafe for OntologyReference
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.