Skip to main content

EntityHierarchy

Trait EntityHierarchy 

Source
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§

Source

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§

Source

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.
Source§

fn is_same_or_subtype(&self, candidate: &str, expected_supertype: &str) -> bool

Source§

fn entity_known(&self, entity: &str) -> Option<bool>

Implementors§