Struct cql3_parser::common::ColumnDefinition
source · pub struct ColumnDefinition {
pub name: Identifier,
pub data_type: DataType,
pub primary_key: bool,
}Expand description
A column definition.
This is used in many places, however the primary_key value should only be used in
the create table calls. In all other cases it will yield an invalid statement.
Fields§
§name: Identifierthe name of the column
data_type: DataTypethe data type for the column
primary_key: boolif set this column is the primary key.
Trait Implementations§
source§impl Clone for ColumnDefinition
impl Clone for ColumnDefinition
source§fn clone(&self) -> ColumnDefinition
fn clone(&self) -> ColumnDefinition
Returns a copy 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 ColumnDefinition
impl Debug for ColumnDefinition
source§impl Display for ColumnDefinition
impl Display for ColumnDefinition
source§impl PartialEq<ColumnDefinition> for ColumnDefinition
impl PartialEq<ColumnDefinition> for ColumnDefinition
source§fn eq(&self, other: &ColumnDefinition) -> bool
fn eq(&self, other: &ColumnDefinition) -> bool
This method tests for
self and other values to be equal, and is used
by ==.