pub struct Table {
pub path: ObjectPath,
pub fields: Fields,
pub fks: Option<ForeignKeys>,
}Expand description
TABLE generator
Fields§
§path: ObjectPath§fields: Fields§fks: Option<ForeignKeys>Implementations§
Trait Implementations§
Source§impl DBObject for Table
impl DBObject for Table
fn to_sql(&self, type_writer: &dyn TypeWriter) -> String
fn is_top_level(&self) -> bool
fn top_level_to_sql( &self, type_writer: &dyn TypeWriter, delayed: &Vec<&Box<&dyn DBObject>>, ) -> String
Source§impl<'de> Deserialize<'de> for Table
impl<'de> Deserialize<'de> for Table
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
Auto Trait Implementations§
impl Freeze for Table
impl RefUnwindSafe for Table
impl Send for Table
impl Sync for Table
impl Unpin for Table
impl UnwindSafe for Table
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