pub struct PostgresColumn {
pub name: String,
pub ordinal_position: i32,
pub is_nullable: bool,
pub data_type: String,
pub default_value: Option<String>,
pub generated: Option<String>,
pub comment: Option<String>,
pub array_dimensions: i32,
pub data_type_length: Option<i32>,
}Fields§
§name: String§ordinal_position: i32§is_nullable: bool§data_type: String§default_value: Option<String>§generated: Option<String>§comment: Option<String>§array_dimensions: i32§data_type_length: Option<i32>Implementations§
Source§impl PostgresColumn
impl PostgresColumn
pub fn get_alter_table_set_default_statement( &self, table: &PostgresTable, schema: &PostgresSchema, identifier_quoter: &IdentifierQuoter, ) -> Option<String>
Source§impl PostgresColumn
impl PostgresColumn
pub fn get_simplified_data_type(&self) -> SimplifiedDataType
Trait Implementations§
Source§impl Clone for PostgresColumn
impl Clone for PostgresColumn
Source§fn clone(&self) -> PostgresColumn
fn clone(&self) -> PostgresColumn
Returns a duplicate of the value. Read more
1.0.0 · 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 PostgresColumn
impl Debug for PostgresColumn
Source§impl Default for PostgresColumn
impl Default for PostgresColumn
Source§impl<'de> Deserialize<'de> for PostgresColumn
impl<'de> Deserialize<'de> for PostgresColumn
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
Source§impl PartialEq for PostgresColumn
impl PartialEq for PostgresColumn
Source§impl Serialize for PostgresColumn
impl Serialize for PostgresColumn
impl Eq for PostgresColumn
impl StructuralPartialEq for PostgresColumn
Auto Trait Implementations§
impl Freeze for PostgresColumn
impl RefUnwindSafe for PostgresColumn
impl Send for PostgresColumn
impl Sync for PostgresColumn
impl Unpin for PostgresColumn
impl UnwindSafe for PostgresColumn
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