#[non_exhaustive]pub enum MssqlType {
Show 16 variants
Bit,
TinyInt,
SmallInt,
Int,
BigInt,
Real,
Float {
precision: u8,
},
NVarChar(MssqlTypeLength),
VarBinary(MssqlTypeLength),
Binary(usize),
Decimal {
precision: u8,
scale: i8,
},
Date,
Time(MssqlTimePrecision),
DateTime,
DateTime2 {
precision: u8,
},
DateTimeOffset {
precision: u8,
},
}Expand description
SQL Server target type for a planned column.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Bit
SQL Server bit.
TinyInt
SQL Server tinyint.
SmallInt
SQL Server smallint.
Int
SQL Server int.
BigInt
SQL Server bigint.
Real
SQL Server real.
Float
SQL Server float(n).
NVarChar(MssqlTypeLength)
SQL Server nvarchar(n|max).
VarBinary(MssqlTypeLength)
SQL Server varbinary(n|max).
Binary(usize)
SQL Server binary(n).
Decimal
SQL Server decimal(p,s).
Date
SQL Server date.
Time(MssqlTimePrecision)
SQL Server time(p).
DateTime
SQL Server datetime.
DateTime2
SQL Server datetime2(p).
DateTimeOffset
SQL Server datetimeoffset(p).
Implementations§
Trait Implementations§
impl Eq for MssqlType
impl StructuralPartialEq for MssqlType
Auto Trait Implementations§
impl Freeze for MssqlType
impl RefUnwindSafe for MssqlType
impl Send for MssqlType
impl Sync for MssqlType
impl Unpin for MssqlType
impl UnsafeUnpin for MssqlType
impl UnwindSafe for MssqlType
Blanket Implementations§
impl<T> Allocation for T
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