#[non_exhaustive]pub enum TvpWireType {
Show 17 variants
Bit,
Int {
size: u8,
},
Float {
size: u8,
},
Decimal {
precision: u8,
scale: u8,
},
NVarChar {
max_length: u16,
},
VarChar {
max_length: u16,
},
VarBinary {
max_length: u16,
},
Guid,
Date,
Time {
scale: u8,
},
DateTime2 {
scale: u8,
},
DateTimeOffset {
scale: u8,
},
Money,
SmallMoney,
DateTime,
SmallDateTime,
Xml,
}Expand description
TVP column type for wire encoding.
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
BIT type.
Int
Integer type with size (1, 2, 4, or 8 bytes).
Float
Floating point type with size (4 or 8 bytes).
Decimal
Decimal/Numeric type.
NVarChar
Unicode string (NVARCHAR).
VarChar
ASCII string (VARCHAR).
VarBinary
Binary data (VARBINARY).
Guid
UNIQUEIDENTIFIER (UUID).
Date
DATE type.
Time
TIME type with scale.
DateTime2
DATETIME2 type with scale.
DateTimeOffset
DATETIMEOFFSET type with scale.
Money
MONEY type (8-byte scaled integer, scale 4 implicit, via MONEYN / 0x6E).
SmallMoney
SMALLMONEY type (4-byte scaled integer, scale 4 implicit, via MONEYN / 0x6E).
DateTime
Legacy DATETIME type (8 bytes: days since 1900 + 1/300s ticks, via DATETIMEN / 0x6F).
SmallDateTime
SMALLDATETIME type (4 bytes: days since 1900 + minutes, via DATETIMEN / 0x6F).
Xml
XML type.
Implementations§
Source§impl TvpWireType
impl TvpWireType
Trait Implementations§
Source§impl Clone for TvpWireType
impl Clone for TvpWireType
Source§fn clone(&self) -> TvpWireType
fn clone(&self) -> TvpWireType
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 TvpWireType
impl Debug for TvpWireType
Source§impl PartialEq for TvpWireType
impl PartialEq for TvpWireType
impl Copy for TvpWireType
impl Eq for TvpWireType
impl StructuralPartialEq for TvpWireType
Auto Trait Implementations§
impl Freeze for TvpWireType
impl RefUnwindSafe for TvpWireType
impl Send for TvpWireType
impl Sync for TvpWireType
impl Unpin for TvpWireType
impl UnsafeUnpin for TvpWireType
impl UnwindSafe for TvpWireType
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