pub struct ColumnEntity {Show 18 fields
pub array: Option<bool>,
pub array_length: Option<i32>,
pub auto_generated: Option<bool>,
pub charset: Option<String>,
pub collation: Option<String>,
pub comment: Option<String>,
pub custom_features: Option<HashMap<String, Value>>,
pub data_type: Option<String>,
pub default_value: Option<String>,
pub fractional_seconds_precision: Option<i32>,
pub length: Option<i64>,
pub name: Option<String>,
pub nullable: Option<bool>,
pub ordinal_position: Option<i32>,
pub precision: Option<i32>,
pub scale: Option<i32>,
pub set_values: Option<Vec<String>>,
pub udt: Option<bool>,
}
Expand description
Column is not used as an independent entity, it is retrieved as part of a Table entity.
This type is not used in any activity, and only used as part of another schema.
Fields§
§array: Option<bool>
Is the column of array type.
array_length: Option<i32>
If the column is array, of which length.
auto_generated: Option<bool>
Is the column auto-generated/identity.
charset: Option<String>
Charset override - instead of table level charset.
collation: Option<String>
Collation override - instead of table level collation.
comment: Option<String>
Comment associated with the column.
custom_features: Option<HashMap<String, Value>>
Custom engine specific features.
data_type: Option<String>
Column data type.
default_value: Option<String>
Default value of the column.
fractional_seconds_precision: Option<i32>
Column fractional second precision - used for timestamp based datatypes.
length: Option<i64>
Column length - e.g. varchar (50).
name: Option<String>
Column name.
nullable: Option<bool>
Is the column nullable.
ordinal_position: Option<i32>
Column order in the table.
precision: Option<i32>
Column precision - when relevant.
scale: Option<i32>
Column scale - when relevant.
set_values: Option<Vec<String>>
Specifies the list of values allowed in the column. Only used for set data type.
udt: Option<bool>
Is the column a UDT.
Trait Implementations§
Source§impl Clone for ColumnEntity
impl Clone for ColumnEntity
Source§fn clone(&self) -> ColumnEntity
fn clone(&self) -> ColumnEntity
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ColumnEntity
impl Debug for ColumnEntity
Source§impl Default for ColumnEntity
impl Default for ColumnEntity
Source§fn default() -> ColumnEntity
fn default() -> ColumnEntity
Source§impl<'de> Deserialize<'de> for ColumnEntity
impl<'de> Deserialize<'de> for ColumnEntity
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>,
Source§impl Serialize for ColumnEntity
impl Serialize for ColumnEntity
impl Part for ColumnEntity
Auto Trait Implementations§
impl Freeze for ColumnEntity
impl RefUnwindSafe for ColumnEntity
impl Send for ColumnEntity
impl Sync for ColumnEntity
impl Unpin for ColumnEntity
impl UnwindSafe for ColumnEntity
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
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>
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>
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