pub struct ColumnInfo {
pub name: String,
pub data_type: String,
pub udt_name: String,
pub udt_schema: Option<String>,
pub is_nullable: bool,
pub is_primary_key: bool,
pub ordinal_position: i32,
pub schema_name: String,
pub column_default: Option<String>,
}Fields§
§name: String§data_type: StringHigh-level data type (e.g. “integer”, “character varying”)
udt_name: StringUnderlying type name: udt_name (PG), column_type (MySQL), declared type (SQLite)
udt_schema: Option<String>Schema in which udt_name is defined.
Populated by the Postgres backend (e.g. auth for an auth.role enum
column, pg_catalog for builtins). None for MySQL/SQLite which have
no per-type namespacing. Used to disambiguate enums/composites/domains
when two schemas declare a type with the same name.
is_nullable: bool§is_primary_key: bool§ordinal_position: i32§schema_name: String§column_default: Option<String>Raw column default expression (e.g. 'idle'::task_status)
Trait Implementations§
Source§impl Clone for ColumnInfo
impl Clone for ColumnInfo
Source§fn clone(&self) -> ColumnInfo
fn clone(&self) -> ColumnInfo
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 ColumnInfo
impl Debug for ColumnInfo
Source§impl Default for ColumnInfo
impl Default for ColumnInfo
Source§fn default() -> ColumnInfo
fn default() -> ColumnInfo
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ColumnInfo
impl RefUnwindSafe for ColumnInfo
impl Send for ColumnInfo
impl Sync for ColumnInfo
impl Unpin for ColumnInfo
impl UnsafeUnpin for ColumnInfo
impl UnwindSafe for ColumnInfo
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