pub struct SchemaDef { /* private fields */ }Implementations§
Source§impl SchemaDef
impl SchemaDef
pub fn new() -> Self
pub fn from_tables(tables: Vec<TableDef>) -> Self
pub fn with_namespaces(self, namespaces: Vec<NamespaceDef>) -> Self
pub fn namespaces(&self) -> &[NamespaceDef]
pub fn tables(&self) -> &[TableDef]
pub fn table(&self, name: &str) -> Option<&TableDef>
Trait Implementations§
impl Eq for SchemaDef
impl StructuralPartialEq for SchemaDef
Auto Trait Implementations§
impl Freeze for SchemaDef
impl RefUnwindSafe for SchemaDef
impl Send for SchemaDef
impl Sync for SchemaDef
impl Unpin for SchemaDef
impl UnsafeUnpin for SchemaDef
impl UnwindSafe for SchemaDef
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