pub enum SqlDatatype {
Show 19 variants
Tinyint(u32, SqlSigned),
Smallint(u32, SqlSigned),
Mediumint(u32, SqlSigned),
Int(u32, SqlSigned),
Bigint(u32, SqlSigned),
Float(u32, u32, SqlSigned),
Double(u32, u32, SqlSigned),
Decimal(u32, u32, SqlSigned),
Date,
Time,
Datetime,
Timestamp,
Char(u32),
Varchar(u32),
Text(u32),
Binary(u32),
Varbinary(u32),
Enum(Vec<String>),
Set(Vec<String>),
}
Expand description
Basic SQL datatypes, defaults to VARCHAR(45)
Variants§
Tinyint(u32, SqlSigned)
Smallint(u32, SqlSigned)
Mediumint(u32, SqlSigned)
Int(u32, SqlSigned)
Bigint(u32, SqlSigned)
Float(u32, u32, SqlSigned)
Double(u32, u32, SqlSigned)
Decimal(u32, u32, SqlSigned)
Date
Time
Datetime
Timestamp
Char(u32)
Varchar(u32)
Text(u32)
Binary(u32)
Varbinary(u32)
Enum(Vec<String>)
Set(Vec<String>)
Implementations§
Trait Implementations§
Source§impl Clone for SqlDatatype
impl Clone for SqlDatatype
Source§fn clone(&self) -> SqlDatatype
fn clone(&self) -> SqlDatatype
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 SqlDatatype
impl Debug for SqlDatatype
Source§impl Default for SqlDatatype
impl Default for SqlDatatype
Source§impl<'de> Deserialize<'de> for SqlDatatype
impl<'de> Deserialize<'de> for SqlDatatype
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 From<&SqlDatatype> for JsonDatatype
impl From<&SqlDatatype> for JsonDatatype
Source§fn from(value: &SqlDatatype) -> Self
fn from(value: &SqlDatatype) -> Self
Converts to this type from the input type.
Source§impl From<&SqlDatatype> for RustDatatype
impl From<&SqlDatatype> for RustDatatype
Source§fn from(value: &SqlDatatype) -> Self
fn from(value: &SqlDatatype) -> Self
Converts to this type from the input type.
Source§impl FromStr for SqlDatatype
impl FromStr for SqlDatatype
Source§impl PartialEq for SqlDatatype
impl PartialEq for SqlDatatype
Source§impl Serialize for SqlDatatype
impl Serialize for SqlDatatype
Source§impl TryFrom<&str> for SqlDatatype
impl TryFrom<&str> for SqlDatatype
impl StructuralPartialEq for SqlDatatype
Auto Trait Implementations§
impl Freeze for SqlDatatype
impl RefUnwindSafe for SqlDatatype
impl Send for SqlDatatype
impl Sync for SqlDatatype
impl Unpin for SqlDatatype
impl UnwindSafe for SqlDatatype
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