pub trait EntityHierarchy {
// Required method
fn is_same_or_subtype(
&self,
candidate: &str,
expected_supertype: &str,
) -> bool;
// Provided method
fn entity_known(&self, _entity: &str) -> Option<bool> { ... }
}Expand description
Minimal hierarchy seam needed by catalog queries.
Required Methods§
Sourcefn is_same_or_subtype(&self, candidate: &str, expected_supertype: &str) -> bool
fn is_same_or_subtype(&self, candidate: &str, expected_supertype: &str) -> bool
True when candidate is expected_supertype or a subtype of it.
Provided Methods§
Sourcefn entity_known(&self, _entity: &str) -> Option<bool>
fn entity_known(&self, _entity: &str) -> Option<bool>
Return Some(false) when the hierarchy can prove the entity is unknown.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl EntityHierarchy for Schema
Available on crate feature schema only.
impl EntityHierarchy for Schema
Available on crate feature
schema only.