Skip to main content

CatalogSchema

Trait CatalogSchema 

Source
pub trait CatalogSchema {
    // Required methods
    fn has_entity(&self, name: &str) -> bool;
    fn has_type(&self, name: &str) -> bool;
}
Expand description

Minimum schema capability needed to validate external catalog names.

Required Methods§

Source

fn has_entity(&self, name: &str) -> bool

True when the schema declares an entity by this exact name.

Source

fn has_type(&self, name: &str) -> bool

True when the schema declares a defined type by this exact name.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl CatalogSchema for Schema

Available on crate feature schema only.
Source§

fn has_entity(&self, name: &str) -> bool

Source§

fn has_type(&self, name: &str) -> bool

Implementors§