pub enum DataTypeProperty<'a> {
Show 19 variants
Signed(Span),
Unsigned(Span),
Zerofill(Span),
Null(Span),
NotNull(Span),
Default(Box<Expression<'a>>),
Comment(SString<'a>),
Charset(Identifier<'a>),
Collate(Identifier<'a>),
Virtual(Span),
Persistent(Span),
Stored(Span),
Unique(Span),
UniqueKey(Span),
GeneratedAlways(Span),
AutoIncrement(Span),
PrimaryKey(Span),
As((Span, Box<Expression<'a>>)),
Check((Span, Box<Expression<'a>>)),
}
Expand description
A property on a datatype
Variants§
Signed(Span)
Unsigned(Span)
Zerofill(Span)
Null(Span)
NotNull(Span)
Default(Box<Expression<'a>>)
Comment(SString<'a>)
Charset(Identifier<'a>)
Collate(Identifier<'a>)
Virtual(Span)
Persistent(Span)
Stored(Span)
Unique(Span)
UniqueKey(Span)
GeneratedAlways(Span)
AutoIncrement(Span)
PrimaryKey(Span)
As((Span, Box<Expression<'a>>))
Check((Span, Box<Expression<'a>>))
Trait Implementations§
Source§impl<'a> Clone for DataTypeProperty<'a>
impl<'a> Clone for DataTypeProperty<'a>
Source§fn clone(&self) -> DataTypeProperty<'a>
fn clone(&self) -> DataTypeProperty<'a>
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<'a> Debug for DataTypeProperty<'a>
impl<'a> Debug for DataTypeProperty<'a>
Auto Trait Implementations§
impl<'a> Freeze for DataTypeProperty<'a>
impl<'a> RefUnwindSafe for DataTypeProperty<'a>
impl<'a> Send for DataTypeProperty<'a>
impl<'a> Sync for DataTypeProperty<'a>
impl<'a> Unpin for DataTypeProperty<'a>
impl<'a> UnwindSafe for DataTypeProperty<'a>
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)