pub struct TableSchema {Show 13 fields
pub schema_name: Option<String>,
pub table_name: String,
pub engine: String,
pub row_format: Option<String>,
pub collation: Option<String>,
pub charset: Option<String>,
pub comment: Option<String>,
pub mysql_version: Option<String>,
pub source: String,
pub columns: Vec<ColumnDef>,
pub indexes: Vec<IndexDef>,
pub foreign_keys: Vec<ForeignKeyDef>,
pub ddl: String,
}Expand description
Reconstructed table schema from SDI or page inference.
Fields§
§schema_name: Option<String>Database/schema name.
table_name: StringTable name.
engine: StringStorage engine.
row_format: Option<String>Row format (DYNAMIC, COMPRESSED, etc.).
collation: Option<String>Table collation name.
charset: Option<String>Character set name.
comment: Option<String>Table comment.
mysql_version: Option<String>MySQL version string.
source: StringSchema source: “sdi” or “inferred”.
columns: Vec<ColumnDef>Column definitions.
indexes: Vec<IndexDef>Index definitions.
foreign_keys: Vec<ForeignKeyDef>Foreign key definitions.
ddl: StringReconstructed CREATE TABLE DDL.
Trait Implementations§
Source§impl Clone for TableSchema
impl Clone for TableSchema
Source§fn clone(&self) -> TableSchema
fn clone(&self) -> TableSchema
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 TableSchema
impl Debug for TableSchema
Auto Trait Implementations§
impl Freeze for TableSchema
impl RefUnwindSafe for TableSchema
impl Send for TableSchema
impl Sync for TableSchema
impl Unpin for TableSchema
impl UnsafeUnpin for TableSchema
impl UnwindSafe for TableSchema
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more