pub struct ColumnSpec {
pub name: &'static str,
pub ty: ColumnType,
pub nullable: bool,
pub pk: bool,
pub auto_increment: bool,
pub unique: bool,
}Expand description
One column’s metadata, produced by #[derive(Entity)] as a const.
Fields§
§name: &'static str§ty: ColumnType§nullable: bool§pk: bool§auto_increment: bool§unique: boolA single-column UNIQUE constraint, rendered inline on the column.
Composite uniqueness is an IndexSpec with unique = true instead.
Trait Implementations§
Source§impl Clone for ColumnSpec
impl Clone for ColumnSpec
impl Copy for ColumnSpec
Auto Trait Implementations§
impl Freeze for ColumnSpec
impl RefUnwindSafe for ColumnSpec
impl Send for ColumnSpec
impl Sync for ColumnSpec
impl Unpin for ColumnSpec
impl UnsafeUnpin for ColumnSpec
impl UnwindSafe for ColumnSpec
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