pub enum OntologyMode {
Exploratory,
Advisory,
Strict,
}Expand description
How the binder resolves unknown labels, relation types, and property names.
Serialises as a lowercase string ("exploratory", "advisory",
"strict"). Lives in graphforge-core so that the project manifest
(manifest::ProjectManifest) and the binder (graphforge-ir) share one
definition; graphforge-ir re-exports it as graphforge_ir::OntologyMode.
Variants§
Exploratory
No ontology required; the runtime catalog auto-assigns integer IDs for every observed label/type.
Advisory
Ontology present; violations produce warnings, not errors.
Strict
Ontology required; violations produce a bind error.
Trait Implementations§
Source§impl Clone for OntologyMode
impl Clone for OntologyMode
Source§fn clone(&self) -> OntologyMode
fn clone(&self) -> OntologyMode
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 moreimpl Copy for OntologyMode
Source§impl Debug for OntologyMode
impl Debug for OntologyMode
Source§impl Default for OntologyMode
impl Default for OntologyMode
Source§fn default() -> OntologyMode
fn default() -> OntologyMode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OntologyMode
impl<'de> Deserialize<'de> for OntologyMode
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 OntologyMode
Source§impl Hash for OntologyMode
impl Hash for OntologyMode
Source§impl PartialEq for OntologyMode
impl PartialEq for OntologyMode
Source§impl Serialize for OntologyMode
impl Serialize for OntologyMode
impl StructuralPartialEq for OntologyMode
Auto Trait Implementations§
impl Freeze for OntologyMode
impl RefUnwindSafe for OntologyMode
impl Send for OntologyMode
impl Sync for OntologyMode
impl Unpin for OntologyMode
impl UnsafeUnpin for OntologyMode
impl UnwindSafe for OntologyMode
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.