pub struct TableField {
pub name: &'static str,
pub is_primary_key: bool,
pub is_unique: bool,
pub foreign_key_to_table_name: Option<&'static str>,
pub sql_type_name: &'static str,
pub is_null: bool,
}
Expand description
Information about a field of a table struct.
Fields§
§name: &'static str
The name of the field.
is_primary_key: bool
Is this field the primary key?
is_unique: bool
Does this field have a unique constraint on it?
foreign_key_to_table_name: Option<&'static str>
The name of the table which this field has a foreign key constraint to, if any.
sql_type_name: &'static str
The sql string representation of this field’s sql type.
is_null: bool
Is this field nullable?
Auto Trait Implementations§
impl Freeze for TableField
impl RefUnwindSafe for TableField
impl Send for TableField
impl Sync for TableField
impl TypesNotEqual for TableField
impl Unpin for TableField
impl UnwindSafe for TableField
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