pub trait PostgresColumnInfo: SQLColumnInfo + Any {
// Required methods
fn table(&self) -> &dyn PostgresTableInfo;
fn is_serial(&self) -> bool;
fn is_bigserial(&self) -> bool;
fn is_generated_identity(&self) -> bool;
fn postgres_type(&self) -> &'static str;
// Provided method
fn foreign_key(&self) -> Option<&'static dyn PostgresColumnInfo> { ... }
}Required Methods§
fn table(&self) -> &dyn PostgresTableInfo
fn is_serial(&self) -> bool
fn is_bigserial(&self) -> bool
fn is_generated_identity(&self) -> bool
fn postgres_type(&self) -> &'static str
Provided Methods§
Sourcefn foreign_key(&self) -> Option<&'static dyn PostgresColumnInfo>
fn foreign_key(&self) -> Option<&'static dyn PostgresColumnInfo>
Returns the foreign key reference if this column has one