pub struct PgAdoptionColumn {
pub name: String,
pub formatted_type: String,
pub type_name: String,
pub type_kind: String,
pub nullable: bool,
pub primary_key: bool,
pub auto_increment: bool,
pub enum_labels: Vec<String>,
}Expand description
单列报告。
Fields§
§name: String列名。
formatted_type: Stringformat_type 规范化类型。
type_name: Stringpg_type.typname。
type_kind: Stringpg_type.typtype(b 基础类型、e 枚举、d domain…)。
nullable: bool是否允许 NULL。
primary_key: bool是否主键列。
auto_increment: boolidentity / serial 列。
enum_labels: Vec<String>原生枚举标签。
Implementations§
Source§impl PgAdoptionColumn
impl PgAdoptionColumn
Sourcepub fn suggested_field(&self) -> Option<String>
pub fn suggested_field(&self) -> Option<String>
生成 schema-first DSL 的字段声明建议;无法安全映射时返回 None。
Trait Implementations§
Source§impl Clone for PgAdoptionColumn
impl Clone for PgAdoptionColumn
Auto Trait Implementations§
impl Forget for PgAdoptionColumn
impl Freeze for PgAdoptionColumn
impl Move for PgAdoptionColumn
impl RefUnwindSafe for PgAdoptionColumn
impl Send for PgAdoptionColumn
impl Sync for PgAdoptionColumn
impl Unpin for PgAdoptionColumn
impl UnsafeUnpin for PgAdoptionColumn
impl UnwindSafe for PgAdoptionColumn
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more