pub struct Schema {
pub app: Schema,
pub db: Schema,
pub mapping: Mapping,
}Fields§
§app: SchemaApplication-level schema
db: SchemaDatabase-level schema
mapping: MappingMaps the app-level schema to the db-level schema
Implementations§
Trait Implementations§
Source§impl Resolve for Schema
impl Resolve for Schema
Source§fn model(&self, id: ModelId) -> Option<&Model>
fn model(&self, id: ModelId) -> Option<&Model>
Returns a reference to the application Model with the specified ID. Read more
Source§fn table(&self, id: TableId) -> Option<&Table>
fn table(&self, id: TableId) -> Option<&Table>
Returns a reference to the database Table with the specified ID. Read more
fn table_for_model(&self, model: &ModelRoot) -> Option<&Table>
Auto Trait Implementations§
impl Freeze for Schema
impl RefUnwindSafe for Schema
impl Send for Schema
impl Sync for Schema
impl Unpin for Schema
impl UnwindSafe for Schema
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