pub struct Schema {
pub tables: Vec<Table>,
}Fields§
§tables: Vec<Table>Implementations§
Source§impl Schema
impl Schema
pub fn column(&self, id: impl Into<ColumnId>) -> &Column
pub fn column_mut(&mut self, id: impl Into<ColumnId>) -> &mut Column
pub fn index(&self, id: IndexId) -> &Index
pub fn index_mut(&mut self, id: IndexId) -> &mut Index
pub fn table(&self, id: impl Into<TableId>) -> &Table
pub fn table_mut(&mut self, id: impl Into<TableId>) -> &mut Table
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Schema
impl<'de> Deserialize<'de> for Schema
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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