pub struct TableInfo {
pub name: String,
pub columns: Vec<ColumnInfo>,
pub primary_key: Vec<String>,
pub create_statement: Option<String>,
}Expand description
Basic info about a table for added tables
Fields§
§name: String§columns: Vec<ColumnInfo>§primary_key: Vec<String>§create_statement: Option<String>Trait Implementations§
Source§impl From<&TableSchema> for TableInfo
impl From<&TableSchema> for TableInfo
Source§fn from(t: &TableSchema) -> Self
fn from(t: &TableSchema) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TableInfo
impl RefUnwindSafe for TableInfo
impl Send for TableInfo
impl Sync for TableInfo
impl Unpin for TableInfo
impl UnwindSafe for TableInfo
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> 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