Struct Mssql

Source
pub struct Mssql;
Available on crate feature mssql only.
Expand description

MSSQL database driver.

Trait Implementationsยง

Sourceยง

impl Database for Mssql

Sourceยง

type Connection = MssqlConnection

The concrete Connection implementation for this database.
Sourceยง

type TransactionManager = MssqlTransactionManager

The concrete TransactionManager implementation for this database.
Sourceยง

type Row = MssqlRow

The concrete Row implementation for this database.
Sourceยง

type QueryResult = MssqlQueryResult

The concrete QueryResult implementation for this database.
Sourceยง

type Column = MssqlColumn

The concrete Column implementation for this database.
Sourceยง

type TypeInfo = MssqlTypeInfo

The concrete TypeInfo implementation for this database.
Sourceยง

type Value = MssqlValue

The concrete type used to hold an owned copy of the not-yet-decoded value that was received from the database.
Sourceยง

impl Debug for Mssql

Sourceยง

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Sourceยง

impl Decode<'_, Mssql> for BigDecimal

Sourceยง

fn decode( value: MssqlValueRef<'_>, ) -> Result<BigDecimal, Box<dyn Error + Send + Sync>>

Decode a new value of this type using a raw value from the database.
Sourceยง

impl Decode<'_, Mssql> for DateTime<FixedOffset>

Sourceยง

fn decode( value: MssqlValueRef<'_>, ) -> Result<DateTime<FixedOffset>, Box<dyn Error + Send + Sync>>

Decode a new value of this type using a raw value from the database.
Sourceยง

impl Decode<'_, Mssql> for DateTime<Utc>

Sourceยง

fn decode( value: MssqlValueRef<'_>, ) -> Result<DateTime<Utc>, Box<dyn Error + Send + Sync>>

Decode a new value of this type using a raw value from the database.
Sourceยง

impl Decode<'_, Mssql> for Decimal

Sourceยง

fn decode( value: MssqlValueRef<'_>, ) -> Result<Decimal, Box<dyn Error + Send + Sync>>

Decode a new value of this type using a raw value from the database.
Sourceยง

impl Decode<'_, Mssql> for NaiveDate

Decodes Date values received from the server

Sourceยง

fn decode( value: MssqlValueRef<'_>, ) -> Result<NaiveDate, Box<dyn Error + Send + Sync>>

Decode a new value of this type using a raw value from the database.
Sourceยง

impl Decode<'_, Mssql> for NaiveDateTime

Decodes DateTime2N values received from the server

Sourceยง

fn decode( value: MssqlValueRef<'_>, ) -> Result<NaiveDateTime, Box<dyn Error + Send + Sync>>

Decode a new value of this type using a raw value from the database.
Sourceยง

impl Decode<'_, Mssql> for NaiveTime

Decodes Time values received from the server

Sourceยง

fn decode( value: MssqlValueRef<'_>, ) -> Result<NaiveTime, Box<dyn Error + Send + Sync>>

Decode a new value of this type using a raw value from the database.
Sourceยง

impl Decode<'_, Mssql> for String

Sourceยง

fn decode( value: MssqlValueRef<'_>, ) -> Result<String, Box<dyn Error + Send + Sync>>

Decode a new value of this type using a raw value from the database.
Sourceยง

impl Decode<'_, Mssql> for Vec<u8>

Sourceยง

fn decode( value: MssqlValueRef<'_>, ) -> Result<Vec<u8>, Box<dyn Error + Send + Sync>>

Decode a new value of this type using a raw value from the database.
Sourceยง

impl Decode<'_, Mssql> for bool

Sourceยง

fn decode( value: MssqlValueRef<'_>, ) -> Result<bool, Box<dyn Error + Send + Sync>>

Decode a new value of this type using a raw value from the database.
Sourceยง

impl Decode<'_, Mssql> for f32

Sourceยง

fn decode(value: MssqlValueRef<'_>) -> Result<f32, Box<dyn Error + Send + Sync>>

Decode a new value of this type using a raw value from the database.
Sourceยง

impl Decode<'_, Mssql> for f64

Sourceยง

fn decode(value: MssqlValueRef<'_>) -> Result<f64, Box<dyn Error + Send + Sync>>

Decode a new value of this type using a raw value from the database.
Sourceยง

impl Decode<'_, Mssql> for i16

Sourceยง

fn decode(value: MssqlValueRef<'_>) -> Result<i16, Box<dyn Error + Send + Sync>>

Decode a new value of this type using a raw value from the database.
Sourceยง

impl Decode<'_, Mssql> for i32

Sourceยง

fn decode(value: MssqlValueRef<'_>) -> Result<i32, Box<dyn Error + Send + Sync>>

Decode a new value of this type using a raw value from the database.
Sourceยง

impl Decode<'_, Mssql> for i64

Sourceยง

fn decode(value: MssqlValueRef<'_>) -> Result<i64, Box<dyn Error + Send + Sync>>

Decode a new value of this type using a raw value from the database.
Sourceยง

impl Decode<'_, Mssql> for i8

Sourceยง

fn decode(value: MssqlValueRef<'_>) -> Result<i8, Box<dyn Error + Send + Sync>>

Decode a new value of this type using a raw value from the database.
Sourceยง

impl Decode<'_, Mssql> for u16

Sourceยง

fn decode(value: MssqlValueRef<'_>) -> Result<u16, Box<dyn Error + Send + Sync>>

Decode a new value of this type using a raw value from the database.
Sourceยง

impl Decode<'_, Mssql> for u32

Sourceยง

fn decode(value: MssqlValueRef<'_>) -> Result<u32, Box<dyn Error + Send + Sync>>

Decode a new value of this type using a raw value from the database.
Sourceยง

impl Decode<'_, Mssql> for u64

Sourceยง

fn decode(value: MssqlValueRef<'_>) -> Result<u64, Box<dyn Error + Send + Sync>>

Decode a new value of this type using a raw value from the database.
Sourceยง

impl Decode<'_, Mssql> for u8

Sourceยง

fn decode(value: MssqlValueRef<'_>) -> Result<u8, Box<dyn Error + Send + Sync>>

Decode a new value of this type using a raw value from the database.
Sourceยง

impl<'r> Decode<'r, Mssql> for &'r [u8]

Sourceยง

fn decode( value: MssqlValueRef<'r>, ) -> Result<&'r [u8], Box<dyn Error + Send + Sync>>

Decode a new value of this type using a raw value from the database.
Sourceยง

impl<'r> Decode<'r, Mssql> for Cow<'r, [u8]>

Sourceยง

fn decode( value: MssqlValueRef<'r>, ) -> Result<Cow<'r, [u8]>, Box<dyn Error + Send + Sync>>

Decode a new value of this type using a raw value from the database.
Sourceยง

impl<'r> Decode<'r, Mssql> for Cow<'r, str>

Sourceยง

fn decode( value: MssqlValueRef<'r>, ) -> Result<Cow<'r, str>, Box<dyn Error + Send + Sync>>

Decode a new value of this type using a raw value from the database.
Sourceยง

impl<'r, T> Decode<'r, Mssql> for Json<T>
where T: 'r + Deserialize<'r>,

Sourceยง

fn decode( value: MssqlValueRef<'r>, ) -> Result<Json<T>, Box<dyn Error + Send + Sync>>

Decode a new value of this type using a raw value from the database.
Sourceยง

impl Encode<'_, Mssql> for &[u8]

Sourceยง

fn produces(&self) -> Option<MssqlTypeInfo>

Sourceยง

fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull

Writes the value of self into buf without moving self. Read more
Sourceยง

fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
where Self: Sized,

Writes the value of self into buf in the expected format for the database.
Sourceยง

fn size_hint(&self) -> usize

Sourceยง

impl Encode<'_, Mssql> for &str

Sourceยง

fn produces(&self) -> Option<MssqlTypeInfo>

Sourceยง

fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull

Writes the value of self into buf without moving self. Read more
Sourceยง

fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
where Self: Sized,

Writes the value of self into buf in the expected format for the database.
Sourceยง

fn size_hint(&self) -> usize

Sourceยง

impl Encode<'_, Mssql> for BigDecimal

Sourceยง

fn produces(&self) -> Option<MssqlTypeInfo>

Sourceยง

fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull

Writes the value of self into buf without moving self. Read more
Sourceยง

fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
where Self: Sized,

Writes the value of self into buf in the expected format for the database.
Sourceยง

fn size_hint(&self) -> usize

Sourceยง

impl Encode<'_, Mssql> for Cow<'_, str>

Sourceยง

fn produces(&self) -> Option<MssqlTypeInfo>

Sourceยง

fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull

Writes the value of self into buf without moving self. Read more
Sourceยง

fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
where Self: Sized,

Writes the value of self into buf in the expected format for the database.
Sourceยง

fn size_hint(&self) -> usize

Sourceยง

impl<'r> Encode<'_, Mssql> for Cow<'r, [u8]>

Sourceยง

fn produces(&self) -> Option<MssqlTypeInfo>

Sourceยง

fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull

Writes the value of self into buf without moving self. Read more
Sourceยง

fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
where Self: Sized,

Writes the value of self into buf in the expected format for the database.
Sourceยง

fn size_hint(&self) -> usize

Sourceยง

impl<T> Encode<'_, Mssql> for DateTime<T>
where T: TimeZone,

Sourceยง

fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull

Writes the value of self into buf without moving self. Read more
Sourceยง

fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
where Self: Sized,

Writes the value of self into buf in the expected format for the database.
Sourceยง

fn produces(&self) -> Option<<DB as Database>::TypeInfo>

Sourceยง

fn size_hint(&self) -> usize

Sourceยง

impl Encode<'_, Mssql> for Decimal

Sourceยง

fn produces(&self) -> Option<MssqlTypeInfo>

Sourceยง

fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull

Writes the value of self into buf without moving self. Read more
Sourceยง

fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
where Self: Sized,

Writes the value of self into buf in the expected format for the database.
Sourceยง

fn size_hint(&self) -> usize

Sourceยง

impl<T> Encode<'_, Mssql> for Json<T>
where T: Serialize,

Sourceยง

fn produces(&self) -> Option<MssqlTypeInfo>

Sourceยง

fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull

Writes the value of self into buf without moving self. Read more
Sourceยง

fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
where Self: Sized,

Writes the value of self into buf in the expected format for the database.
Sourceยง

fn size_hint(&self) -> usize

Sourceยง

impl Encode<'_, Mssql> for NaiveDate

Encodes Date objects for transfer over the wire

Sourceยง

fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull

Writes the value of self into buf without moving self. Read more
Sourceยง

fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
where Self: Sized,

Writes the value of self into buf in the expected format for the database.
Sourceยง

fn produces(&self) -> Option<<DB as Database>::TypeInfo>

Sourceยง

fn size_hint(&self) -> usize

Sourceยง

impl Encode<'_, Mssql> for NaiveDateTime

Encodes DateTime objects for transfer over the wire

Sourceยง

fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull

Writes the value of self into buf without moving self. Read more
Sourceยง

fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
where Self: Sized,

Writes the value of self into buf in the expected format for the database.
Sourceยง

fn produces(&self) -> Option<<DB as Database>::TypeInfo>

Sourceยง

fn size_hint(&self) -> usize

Sourceยง

impl Encode<'_, Mssql> for NaiveTime

Encodes Time objects for transfer over the wire

Sourceยง

fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull

Writes the value of self into buf without moving self. Read more
Sourceยง

fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
where Self: Sized,

Writes the value of self into buf in the expected format for the database.
Sourceยง

fn produces(&self) -> Option<<DB as Database>::TypeInfo>

Sourceยง

fn size_hint(&self) -> usize

Sourceยง

impl Encode<'_, Mssql> for String

Sourceยง

fn produces(&self) -> Option<MssqlTypeInfo>

Sourceยง

fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull

Writes the value of self into buf without moving self. Read more
Sourceยง

fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
where Self: Sized,

Writes the value of self into buf in the expected format for the database.
Sourceยง

fn size_hint(&self) -> usize

Sourceยง

impl Encode<'_, Mssql> for Vec<u8>

Sourceยง

fn produces(&self) -> Option<MssqlTypeInfo>

Sourceยง

fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull

Writes the value of self into buf without moving self. Read more
Sourceยง

fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
where Self: Sized,

Writes the value of self into buf in the expected format for the database.
Sourceยง

fn size_hint(&self) -> usize

Sourceยง

impl Encode<'_, Mssql> for bool

Sourceยง

fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull

Writes the value of self into buf without moving self. Read more
Sourceยง

fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
where Self: Sized,

Writes the value of self into buf in the expected format for the database.
Sourceยง

fn produces(&self) -> Option<<DB as Database>::TypeInfo>

Sourceยง

fn size_hint(&self) -> usize

Sourceยง

impl Encode<'_, Mssql> for f32

Sourceยง

fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull

Writes the value of self into buf without moving self. Read more
Sourceยง

fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
where Self: Sized,

Writes the value of self into buf in the expected format for the database.
Sourceยง

fn produces(&self) -> Option<<DB as Database>::TypeInfo>

Sourceยง

fn size_hint(&self) -> usize

Sourceยง

impl Encode<'_, Mssql> for f64

Sourceยง

fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull

Writes the value of self into buf without moving self. Read more
Sourceยง

fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
where Self: Sized,

Writes the value of self into buf in the expected format for the database.
Sourceยง

fn produces(&self) -> Option<<DB as Database>::TypeInfo>

Sourceยง

fn size_hint(&self) -> usize

Sourceยง

impl Encode<'_, Mssql> for i16

Sourceยง

fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull

Writes the value of self into buf without moving self. Read more
Sourceยง

fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
where Self: Sized,

Writes the value of self into buf in the expected format for the database.
Sourceยง

fn produces(&self) -> Option<<DB as Database>::TypeInfo>

Sourceยง

fn size_hint(&self) -> usize

Sourceยง

impl Encode<'_, Mssql> for i32

Sourceยง

fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull

Writes the value of self into buf without moving self. Read more
Sourceยง

fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
where Self: Sized,

Writes the value of self into buf in the expected format for the database.
Sourceยง

fn produces(&self) -> Option<<DB as Database>::TypeInfo>

Sourceยง

fn size_hint(&self) -> usize

Sourceยง

impl Encode<'_, Mssql> for i64

Sourceยง

fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull

Writes the value of self into buf without moving self. Read more
Sourceยง

fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
where Self: Sized,

Writes the value of self into buf in the expected format for the database.
Sourceยง

fn produces(&self) -> Option<<DB as Database>::TypeInfo>

Sourceยง

fn size_hint(&self) -> usize

Sourceยง

impl Encode<'_, Mssql> for i8

Sourceยง

fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull

Writes the value of self into buf without moving self. Read more
Sourceยง

fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
where Self: Sized,

Writes the value of self into buf in the expected format for the database.
Sourceยง

fn produces(&self) -> Option<<DB as Database>::TypeInfo>

Sourceยง

fn size_hint(&self) -> usize

Sourceยง

impl Encode<'_, Mssql> for u16

Sourceยง

fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull

Writes the value of self into buf without moving self. Read more
Sourceยง

fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
where Self: Sized,

Writes the value of self into buf in the expected format for the database.
Sourceยง

fn produces(&self) -> Option<<DB as Database>::TypeInfo>

Sourceยง

fn size_hint(&self) -> usize

Sourceยง

impl Encode<'_, Mssql> for u32

Sourceยง

fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull

Writes the value of self into buf without moving self. Read more
Sourceยง

fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
where Self: Sized,

Writes the value of self into buf in the expected format for the database.
Sourceยง

fn produces(&self) -> Option<<DB as Database>::TypeInfo>

Sourceยง

fn size_hint(&self) -> usize

Sourceยง

impl Encode<'_, Mssql> for u64

Sourceยง

fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull

Writes the value of self into buf without moving self. Read more
Sourceยง

fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
where Self: Sized,

Writes the value of self into buf in the expected format for the database.
Sourceยง

fn produces(&self) -> Option<<DB as Database>::TypeInfo>

Sourceยง

fn size_hint(&self) -> usize

Sourceยง

impl Encode<'_, Mssql> for u8

Sourceยง

fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull

Writes the value of self into buf without moving self. Read more
Sourceยง

fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
where Self: Sized,

Writes the value of self into buf in the expected format for the database.
Sourceยง

fn produces(&self) -> Option<<DB as Database>::TypeInfo>

Sourceยง

fn size_hint(&self) -> usize

Sourceยง

impl<'q, T> Encode<'q, Mssql> for Option<T>
where T: 'q + Encode<'q, Mssql>,

Sourceยง

fn encode(self, buf: &mut Vec<u8>) -> IsNull

Writes the value of self into buf in the expected format for the database.
Sourceยง

fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull

Writes the value of self into buf without moving self. Read more
Sourceยง

fn produces(&self) -> Option<MssqlTypeInfo>

Sourceยง

fn size_hint(&self) -> usize

Sourceยง

impl HasArguments<'_> for Mssql

Sourceยง

type Database = Mssql

Sourceยง

type Arguments = MssqlArguments

The concrete Arguments implementation for this database.
Sourceยง

type ArgumentBuffer = Vec<u8>

The concrete type used as a buffer for arguments while encoding.
Sourceยง

impl<'q> HasStatement<'q> for Mssql

Sourceยง

type Database = Mssql

Sourceยง

type Statement = MssqlStatement<'q>

The concrete Statement implementation for this database.
Sourceยง

impl<'r> HasValueRef<'r> for Mssql

Sourceยง

type Database = Mssql

Sourceยง

type ValueRef = MssqlValueRef<'r>

The concrete type used to hold a reference to the not-yet-decoded value that has just been received from the database.
Sourceยง

impl Type<Mssql> for [u8]

Sourceยง

fn type_info() -> MssqlTypeInfo

Returns the canonical SQL type for this Rust type. Read more
Sourceยง

fn compatible(ty: &MssqlTypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
Sourceยง

impl Type<Mssql> for BigDecimal

Sourceยง

fn type_info() -> MssqlTypeInfo

Returns the canonical SQL type for this Rust type. Read more
Sourceยง

fn compatible(ty: &MssqlTypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
Sourceยง

impl Type<Mssql> for Cow<'_, str>

Sourceยง

fn type_info() -> MssqlTypeInfo

Returns the canonical SQL type for this Rust type. Read more
Sourceยง

fn compatible(ty: &MssqlTypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
Sourceยง

impl<'r> Type<Mssql> for Cow<'r, [u8]>

Sourceยง

fn type_info() -> MssqlTypeInfo

Returns the canonical SQL type for this Rust type. Read more
Sourceยง

fn compatible(ty: &MssqlTypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
Sourceยง

impl<T> Type<Mssql> for DateTime<T>
where T: TimeZone,

Sourceยง

fn type_info() -> MssqlTypeInfo

Returns the canonical SQL type for this Rust type. Read more
Sourceยง

fn compatible(ty: &MssqlTypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
Sourceยง

impl Type<Mssql> for Decimal

Sourceยง

fn type_info() -> MssqlTypeInfo

Returns the canonical SQL type for this Rust type. Read more
Sourceยง

fn compatible(ty: &MssqlTypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
Sourceยง

impl<T> Type<Mssql> for Json<T>

Sourceยง

fn type_info() -> MssqlTypeInfo

Returns the canonical SQL type for this Rust type. Read more
Sourceยง

fn compatible(ty: &MssqlTypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
Sourceยง

impl Type<Mssql> for NaiveDate

Provides conversion of chrono::NaiveDate to MS SQL Date

Sourceยง

fn type_info() -> MssqlTypeInfo

Returns the canonical SQL type for this Rust type. Read more
Sourceยง

fn compatible(ty: &MssqlTypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
Sourceยง

impl Type<Mssql> for NaiveDateTime

Provides conversion of chrono::DateTime (UTC) to MS SQL DateTime2N

Note that MS SQL has a number of DateTime-related types and conversion might not work. During encoding, values are always encoded with the best possible precision, which uses 7 digits for nanoseconds.

Sourceยง

fn type_info() -> MssqlTypeInfo

Returns the canonical SQL type for this Rust type. Read more
Sourceยง

fn compatible(ty: &MssqlTypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
Sourceยง

impl Type<Mssql> for NaiveTime

Provides conversion of chrono::NaiveTime to MS SQL Time

Sourceยง

fn type_info() -> MssqlTypeInfo

Returns the canonical SQL type for this Rust type. Read more
Sourceยง

fn compatible(ty: &MssqlTypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
Sourceยง

impl Type<Mssql> for String

Sourceยง

fn type_info() -> MssqlTypeInfo

Returns the canonical SQL type for this Rust type. Read more
Sourceยง

fn compatible(ty: &MssqlTypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
Sourceยง

impl Type<Mssql> for Vec<u8>

Sourceยง

fn type_info() -> MssqlTypeInfo

Returns the canonical SQL type for this Rust type. Read more
Sourceยง

fn compatible(ty: &MssqlTypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
Sourceยง

impl Type<Mssql> for bool

Sourceยง

fn type_info() -> MssqlTypeInfo

Returns the canonical SQL type for this Rust type. Read more
Sourceยง

fn compatible(ty: &MssqlTypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
Sourceยง

impl Type<Mssql> for f32

Sourceยง

fn type_info() -> MssqlTypeInfo

Returns the canonical SQL type for this Rust type. Read more
Sourceยง

fn compatible(ty: &MssqlTypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
Sourceยง

impl Type<Mssql> for f64

Sourceยง

fn type_info() -> MssqlTypeInfo

Returns the canonical SQL type for this Rust type. Read more
Sourceยง

fn compatible(ty: &MssqlTypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
Sourceยง

impl Type<Mssql> for i16

Sourceยง

fn type_info() -> MssqlTypeInfo

Returns the canonical SQL type for this Rust type. Read more
Sourceยง

fn compatible(ty: &MssqlTypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
Sourceยง

impl Type<Mssql> for i32

Sourceยง

fn type_info() -> MssqlTypeInfo

Returns the canonical SQL type for this Rust type. Read more
Sourceยง

fn compatible(ty: &MssqlTypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
Sourceยง

impl Type<Mssql> for i64

Sourceยง

fn type_info() -> MssqlTypeInfo

Returns the canonical SQL type for this Rust type. Read more
Sourceยง

fn compatible(ty: &MssqlTypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
Sourceยง

impl Type<Mssql> for i8

Sourceยง

fn type_info() -> MssqlTypeInfo

Returns the canonical SQL type for this Rust type. Read more
Sourceยง

fn compatible(ty: &MssqlTypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
Sourceยง

impl Type<Mssql> for str

Sourceยง

fn type_info() -> MssqlTypeInfo

Returns the canonical SQL type for this Rust type. Read more
Sourceยง

fn compatible(ty: &MssqlTypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
Sourceยง

impl Type<Mssql> for u16

Sourceยง

fn type_info() -> MssqlTypeInfo

Returns the canonical SQL type for this Rust type. Read more
Sourceยง

fn compatible(ty: &MssqlTypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
Sourceยง

impl Type<Mssql> for u32

Sourceยง

fn type_info() -> MssqlTypeInfo

Returns the canonical SQL type for this Rust type. Read more
Sourceยง

fn compatible(ty: &MssqlTypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
Sourceยง

impl Type<Mssql> for u64

Sourceยง

fn type_info() -> MssqlTypeInfo

Returns the canonical SQL type for this Rust type. Read more
Sourceยง

fn compatible(ty: &MssqlTypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
Sourceยง

impl Type<Mssql> for u8

Sourceยง

fn type_info() -> MssqlTypeInfo

Returns the canonical SQL type for this Rust type. Read more
Sourceยง

fn compatible(ty: &MssqlTypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more

Auto Trait Implementationsยง

Blanket Implementationsยง

Sourceยง

impl<T> Any for T
where T: 'static + ?Sized,

Sourceยง

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Sourceยง

impl<T> Borrow<T> for T
where T: ?Sized,

Sourceยง

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Sourceยง

impl<T> BorrowMut<T> for T
where T: ?Sized,

Sourceยง

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Sourceยง

impl<T> From<T> for T

Sourceยง

fn from(t: T) -> T

Returns the argument unchanged.

Sourceยง

impl<T, U> Into<U> for T
where U: From<T>,

Sourceยง

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Sourceยง

impl<T> IntoEither for T

Sourceยง

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 more
Sourceยง

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> โ“˜
where F: FnOnce(&Self) -> bool,

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
Sourceยง

impl<T> Same for T

Sourceยง

type Output = T

Should always be Self
Sourceยง

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Sourceยง

type Error = Infallible

The type returned in the event of a conversion error.
Sourceยง

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Sourceยง

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Sourceยง

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Sourceยง

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Sourceยง

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Sourceยง

fn vzip(self) -> V

Sourceยง

impl<T> ErasedDestructor for T
where T: 'static,