pub struct SchemaRegistry { /* private fields */ }Expand description
Schema registry that manages all loaded schemas
Implementations§
Source§impl SchemaRegistry
impl SchemaRegistry
Sourcepub fn load_from_cache<P: AsRef<Path>>(cache_dir: P) -> Result<Self>
pub fn load_from_cache<P: AsRef<Path>>(cache_dir: P) -> Result<Self>
Load all schemas from a cache directory
Sourcepub fn schema_names(&self) -> Vec<String>
pub fn schema_names(&self) -> Vec<String>
Get all schema names
Sourcepub fn resolve_inheritance(&self, schema_name: &str) -> Result<ResolvedSchema>
pub fn resolve_inheritance(&self, schema_name: &str) -> Result<ResolvedSchema>
Resolve a schema with all inherited properties
Sourcepub fn concrete_schemas(&self) -> Vec<String>
pub fn concrete_schemas(&self) -> Vec<String>
Get all concrete (non-abstract) schemas
Auto Trait Implementations§
impl Freeze for SchemaRegistry
impl RefUnwindSafe for SchemaRegistry
impl Send for SchemaRegistry
impl Sync for SchemaRegistry
impl Unpin for SchemaRegistry
impl UnsafeUnpin for SchemaRegistry
impl UnwindSafe for SchemaRegistry
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