Skip to main content

SchemaProvider

Trait SchemaProvider 

Source
pub trait SchemaProvider {
    // Required method
    fn get_collection(&self, name: &str) -> Option<&Collection>;

    // Provided method
    fn collection_exists(&self, name: &str) -> bool { ... }
}
Expand description

Schema provider trait for validation Allows validation without direct Aurora dependency

Required Methods§

Source

fn get_collection(&self, name: &str) -> Option<&Collection>

Get a collection definition by name

Provided Methods§

Source

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

Check if a collection exists

Implementors§