Enum Type
pub enum Type {
Show 29 variants
BigInt,
Numeric(NumericAttr),
Bit,
SmallInt,
Decimal(NumericAttr),
SmallMoney,
Int,
TinyInt,
Money,
Float(FloatAttr),
Real,
Date,
DateTimeOffset(TimeAttr),
DateTime2(TimeAttr),
SmallDateTime,
DateTime,
Time(TimeAttr),
Char(StringLen),
Varchar(StringLen),
Text,
Nchar(StringLen),
Nvarchar(StringLen),
Ntext,
Binary(StringLen),
Varbinary(StringLen),
Image,
UniqueIdentifier,
Xml,
Unknown(String),
}Expand description
MS SQL data types
Ref: https://learn.microsoft.com/en-us/sql/t-sql/data-types/data-types-transact-sql?view=sql-server-2016
Variants§
BigInt
Numeric(NumericAttr)
Bit
SmallInt
Decimal(NumericAttr)
SmallMoney
Int
TinyInt
Money
Float(FloatAttr)
The synonym for double precision is float(53).
Real
The synonym for real is float(24).
Date
DateTimeOffset(TimeAttr)
DateTime2(TimeAttr)
SmallDateTime
DateTime
Time(TimeAttr)
Char(StringLen)
Varchar(StringLen)
Text
Nchar(StringLen)
Nvarchar(StringLen)
Ntext
Binary(StringLen)
Varbinary(StringLen)
Image
UniqueIdentifier
Xml
Unknown(String)
Implementations§
§impl Type
impl Type
pub fn is_numeric(&self) -> bool
pub fn set_numeric_attr(&mut self, attr: NumericAttr)
pub fn is_float(&self) -> bool
pub fn set_float_attr(&mut self, attr: FloatAttr)
pub fn is_time(&self) -> bool
pub fn set_time_attr(&mut self, attr: TimeAttr)
pub fn is_string(&self) -> bool
pub fn set_string_len(&mut self, attr: StringLen)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
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