#[non_exhaustive]pub struct TableEntity {
pub columns: Vec<ColumnEntity>,
pub constraints: Vec<ConstraintEntity>,
pub indices: Vec<IndexEntity>,
pub triggers: Vec<TriggerEntity>,
pub custom_features: Option<Struct>,
pub comment: String,
/* private fields */
}Expand description
Table’s parent is a schema.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.columns: Vec<ColumnEntity>Table columns.
constraints: Vec<ConstraintEntity>Table constraints.
indices: Vec<IndexEntity>Table indices.
triggers: Vec<TriggerEntity>Table triggers.
custom_features: Option<Struct>Custom engine specific features.
comment: StringComment associated with the table.
Implementations§
Source§impl TableEntity
impl TableEntity
pub fn new() -> Self
Sourcepub fn set_columns<T, V>(self, v: T) -> Self
pub fn set_columns<T, V>(self, v: T) -> Self
Sets the value of columns.
Sourcepub fn set_constraints<T, V>(self, v: T) -> Self
pub fn set_constraints<T, V>(self, v: T) -> Self
Sets the value of constraints.
Sourcepub fn set_indices<T, V>(self, v: T) -> Self
pub fn set_indices<T, V>(self, v: T) -> Self
Sets the value of indices.
Sourcepub fn set_triggers<T, V>(self, v: T) -> Self
pub fn set_triggers<T, V>(self, v: T) -> Self
Sets the value of triggers.
Sourcepub fn set_custom_features<T>(self, v: T) -> Self
pub fn set_custom_features<T>(self, v: T) -> Self
Sets the value of custom_features.
Sourcepub fn set_or_clear_custom_features<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_custom_features<T>(self, v: Option<T>) -> Self
Sets or clears the value of custom_features.
Sourcepub fn set_comment<T: Into<String>>(self, v: T) -> Self
pub fn set_comment<T: Into<String>>(self, v: T) -> Self
Sets the value of comment.
Trait Implementations§
Source§impl Clone for TableEntity
impl Clone for TableEntity
Source§fn clone(&self) -> TableEntity
fn clone(&self) -> TableEntity
Returns a duplicate of the value. Read more
1.0.0 · 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 TableEntity
impl Debug for TableEntity
Source§impl Default for TableEntity
impl Default for TableEntity
Source§fn default() -> TableEntity
fn default() -> TableEntity
Returns the “default value” for a type. Read more
Source§impl Message for TableEntity
impl Message for TableEntity
Source§impl PartialEq for TableEntity
impl PartialEq for TableEntity
impl StructuralPartialEq for TableEntity
Auto Trait Implementations§
impl Freeze for TableEntity
impl RefUnwindSafe for TableEntity
impl Send for TableEntity
impl Sync for TableEntity
impl Unpin for TableEntity
impl UnwindSafe for TableEntity
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