pub struct TableInput {
pub name: String,
pub schema: Option<String>,
pub primary_key: Option<PrimaryKey>,
pub columns: Vec<Column>,
pub foreign_keys: Vec<ForeignKey>,
pub indexes: Vec<IndexInput>,
pub constraints: Vec<ConstraintInput>,
pub triggers: Vec<TriggerInput>,
}Expand description
Authored table definition without unmanaged table-option metadata.
Fields§
§name: StringTable name. Empty names are filled from the map key during normalization.
schema: Option<String>Optional database schema name.
primary_key: Option<PrimaryKey>Optional primary-key definition.
columns: Vec<Column>Authored columns.
foreign_keys: Vec<ForeignKey>Authored table-level foreign keys.
indexes: Vec<IndexInput>Authored modeled indexes.
constraints: Vec<ConstraintInput>Authored modeled constraints.
triggers: Vec<TriggerInput>Authored modeled triggers.
Trait Implementations§
Source§impl Clone for TableInput
impl Clone for TableInput
Source§fn clone(&self) -> TableInput
fn clone(&self) -> TableInput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TableInput
impl Debug for TableInput
Source§impl<'de> Deserialize<'de> for TableInput
impl<'de> Deserialize<'de> for TableInput
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 PartialEq for TableInput
impl PartialEq for TableInput
impl StructuralPartialEq for TableInput
Auto Trait Implementations§
impl Freeze for TableInput
impl RefUnwindSafe for TableInput
impl Send for TableInput
impl Sync for TableInput
impl Unpin for TableInput
impl UnsafeUnpin for TableInput
impl UnwindSafe for TableInput
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