pub struct ColumnDetail {
pub name: String,
pub type_name: String,
pub not_null: bool,
pub has_default: bool,
pub is_generated: bool,
}Expand description
Per-column metadata used by the INSERT form to pre-set Use
DEFAULT and NULL toggles. Read from pg_attribute joined
with pg_attrdef for the default-presence flag.
Fields§
§name: String§type_name: Stringpg_type.typname — feeds the INSERT form’s per-column
::type cast.
not_null: boolattnotnull. When true, the INSERT form refuses NULL.
has_default: boolpg_attrdef row exists for this column. When true, the
form defaults to “Use DEFAULT” so the user only fills in
what they want to override.
is_generated: boolattgenerated <> '' — generated columns can’t be set on
INSERT. The form omits these entirely.
Trait Implementations§
Source§impl Clone for ColumnDetail
impl Clone for ColumnDetail
Source§fn clone(&self) -> ColumnDetail
fn clone(&self) -> ColumnDetail
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ColumnDetail
impl Debug for ColumnDetail
Source§impl<'de> Deserialize<'de> for ColumnDetail
impl<'de> Deserialize<'de> for ColumnDetail
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ColumnDetail
impl RefUnwindSafe for ColumnDetail
impl Send for ColumnDetail
impl Sync for ColumnDetail
impl Unpin for ColumnDetail
impl UnsafeUnpin for ColumnDetail
impl UnwindSafe for ColumnDetail
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