pub struct ColumnDefinition {
pub name: Identifier,
pub data_type: Arc<str>,
pub constraints: Vec<ColumnConstraint>,
pub span: Range<usize>,
}Expand description
Represents a column definition in a CREATE TABLE statement.
Fields§
§name: IdentifierThe name of the column.
data_type: Arc<str>The data type of the column.
constraints: Vec<ColumnConstraint>Any column constraints.
span: Range<usize>The span of the column definition.
Trait Implementations§
Source§impl AsDocument for ColumnDefinition
Available on crate feature oak-pretty-print only.
impl AsDocument for ColumnDefinition
Available on crate feature
oak-pretty-print only.Source§fn as_document(&self) -> Document<'_>
fn as_document(&self) -> Document<'_>
Converts this type to a document for pretty printing.
Source§impl Clone for ColumnDefinition
impl Clone for ColumnDefinition
Source§fn clone(&self) -> ColumnDefinition
fn clone(&self) -> ColumnDefinition
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 ColumnDefinition
impl Debug for ColumnDefinition
Source§impl<'de> Deserialize<'de> for ColumnDefinition
impl<'de> Deserialize<'de> for ColumnDefinition
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 Serialize for ColumnDefinition
impl Serialize for ColumnDefinition
Source§impl ToSource for ColumnDefinition
impl ToSource for ColumnDefinition
Source§fn to_source(&self, buffer: &mut SourceBuffer)
fn to_source(&self, buffer: &mut SourceBuffer)
Writes the source code representation of this type to the provided buffer.
Source§fn to_source_string(&self) -> String
fn to_source_string(&self) -> String
Converts this type to a source code string.
Auto Trait Implementations§
impl Freeze for ColumnDefinition
impl RefUnwindSafe for ColumnDefinition
impl Send for ColumnDefinition
impl Sync for ColumnDefinition
impl Unpin for ColumnDefinition
impl UnsafeUnpin for ColumnDefinition
impl UnwindSafe for ColumnDefinition
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