pub struct FieldDef {
pub name: &'static str,
pub ty: &'static str,
pub is_primary_key: bool,
pub column_name: Option<&'static str>,
pub default_value: Option<&'static str>,
}Fields§
§name: &'static str§ty: &'static strRust type as it appears in a SeaORM Model struct,
e.g. "Option<String>", "bool", "DateTimeUtc", "Json".
is_primary_key: bool§column_name: Option<&'static str>§default_value: Option<&'static str>Database string default, rendered as a literal by each backend.
Trait Implementations§
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