pub struct Column {
pub name: String,
pub pg_type: String,
pub nullable: bool,
pub has_default: bool,
pub default_expr: Option<String>,
pub max_length: Option<i32>,
pub is_pk: bool,
pub is_generated: bool,
pub comment: Option<String>,
pub enum_values: Option<Vec<String>>,
}Fields§
§name: String§pg_type: StringPostgreSQL type name (udt_name), e.g. “int4”, “text”, “timestamptz”. Array types have a leading underscore, e.g. “_int4”.
nullable: bool§has_default: bool§default_expr: Option<String>§max_length: Option<i32>§is_pk: bool§is_generated: boolTrue for GENERATED ALWAYS AS (…) STORED columns.
comment: Option<String>§enum_values: Option<Vec<String>>Trait Implementations§
Auto Trait Implementations§
impl Freeze for Column
impl RefUnwindSafe for Column
impl Send for Column
impl Sync for Column
impl Unpin for Column
impl UnsafeUnpin for Column
impl UnwindSafe for Column
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