pub struct FieldDef {
pub name: String,
pub type_name: String,
pub required: bool,
pub unique: bool,
pub default: Option<Literal>,
pub auto: bool,
}Fields§
§name: String§type_name: String§required: bool§unique: booltrue when declared with the unique modifier — auto-creates a
unique B+Tree index on this column at table-create time.
default: Option<Literal>Literal default applied when an insert omits this column. None means
the column has no default (omitting it yields the empty set / null).
auto: booltrue when declared auto — an integer column whose value is assigned
from a monotonic per-table sequence when an insert omits it.
Trait Implementations§
impl StructuralPartialEq for FieldDef
Auto Trait Implementations§
impl Freeze for FieldDef
impl RefUnwindSafe for FieldDef
impl Send for FieldDef
impl Sync for FieldDef
impl Unpin for FieldDef
impl UnsafeUnpin for FieldDef
impl UnwindSafe for FieldDef
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