SqlServerLiteralDynWrapper

Enum SqlServerLiteralDynWrapper 

Source
pub enum SqlServerLiteralDynWrapper<'a> {
    Borrowed(&'a dyn SqlServerLiteral),
    Owned(Box<dyn SqlServerLiteral>),
}
Expand description

A wrapper type that can hold either a borrowed or owned [dyn SqlServerLiteral] value.

This type allows generic code to handle both borrowed and owned SQL literal trait objects uniformly. It is primarily used when dynamically storing or formatting SQL literal values, without having to commit to a single ownership model.

§Examples

use mssql_value_serializer::{
    SqlServerLiteralDynWrapper, SqlServerLiteralForValueListWrapper,
};

let s = String::from("Some text");

let mut values: Vec<SqlServerLiteralDynWrapper<'_>> = vec![
    SqlServerLiteralDynWrapper::from(1u8),
    SqlServerLiteralDynWrapper::from(2i8),
    SqlServerLiteralDynWrapper::from(&s),
];

let mut sql = format!(
    "
        SELECT
            *
        FROM
            [TABLE]
        WHERE
            name IN ({value})
    ",
    value = SqlServerLiteralForValueListWrapper::new(values)
);

assert_eq!(
    "
        SELECT
            *
        FROM
            [TABLE]
        WHERE
            name IN (1, 2, N'Some text')
    ",
    sql
);

Variants§

§

Borrowed(&'a dyn SqlServerLiteral)

§

Owned(Box<dyn SqlServerLiteral>)

Trait Implementations§

Source§

impl Debug for SqlServerLiteralDynWrapper<'_>

Source§

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

Formats the wrapped value as a SQL Server literal.

Source§

impl<'a> Deref for SqlServerLiteralDynWrapper<'a>

Source§

type Target = dyn SqlServerLiteral + 'a

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl Display for SqlServerLiteralDynWrapper<'_>

Source§

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

Formats the wrapped value as a SQL Server literal.

Source§

impl<'a> From<&'a &'a [u8]> for SqlServerLiteralDynWrapper<'a>

Source§

fn from(value: &'a &'a [u8]) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a &'a str> for SqlServerLiteralDynWrapper<'a>

Source§

fn from(value: &'a &'a str) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'static [u8]> for SqlServerLiteralDynWrapper<'a>

Source§

fn from(value: &'static [u8]) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Arc<String>> for SqlServerLiteralDynWrapper<'a>

Source§

fn from(value: &'a Arc<String>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a BigDecimal> for SqlServerLiteralDynWrapper<'a>

Available on crate feature bigdecimal only.
Source§

fn from(value: &'a BigDecimal) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a BigDecimalRef<'a>> for SqlServerLiteralDynWrapper<'a>

Available on crate feature bigdecimal only.
Source§

fn from(value: &'a BigDecimalRef<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a BigInt> for SqlServerLiteralDynWrapper<'a>

Available on crate feature num-bigint only.
Source§

fn from(value: &'a BigInt) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a BigUint> for SqlServerLiteralDynWrapper<'a>

Available on crate feature num-bigint only.
Source§

fn from(value: &'a BigUint) -> Self

Converts to this type from the input type.
Source§

impl<'a, T: ?Sized + ToOwned + SqlServerLiteral> From<&'a Cow<'a, T>> for SqlServerLiteralDynWrapper<'a>

Source§

fn from(value: &'a Cow<'a, T>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Date> for SqlServerLiteralDynWrapper<'a>

Available on crate feature time only.
Source§

fn from(value: &'a Date) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a DateTime<FixedOffset>> for SqlServerLiteralDynWrapper<'a>

Available on crate feature chrono only.
Source§

fn from(value: &'a DateTime<FixedOffset>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a DateTime<Local>> for SqlServerLiteralDynWrapper<'a>

Available on crate feature chrono only.
Source§

fn from(value: &'a DateTime<Local>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a DateTime<Utc>> for SqlServerLiteralDynWrapper<'a>

Available on crate feature chrono only.
Source§

fn from(value: &'a DateTime<Utc>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Decimal> for SqlServerLiteralDynWrapper<'a>

Available on crate feature rust_decimal only.
Source§

fn from(value: &'a Decimal) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a NaiveDate> for SqlServerLiteralDynWrapper<'a>

Available on crate feature chrono only.
Source§

fn from(value: &'a NaiveDate) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a NaiveDateTime> for SqlServerLiteralDynWrapper<'a>

Available on crate feature chrono only.
Source§

fn from(value: &'a NaiveDateTime) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a NaiveTime> for SqlServerLiteralDynWrapper<'a>

Available on crate feature chrono only.
Source§

fn from(value: &'a NaiveTime) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a OffsetDateTime> for SqlServerLiteralDynWrapper<'a>

Available on crate feature time only.
Source§

fn from(value: &'a OffsetDateTime) -> Self

Converts to this type from the input type.
Source§

impl<'a, T: ?Sized> From<&'a Option<&'a T>> for SqlServerLiteralDynWrapper<'a>

Source§

fn from(value: &'a Option<&'a T>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a PrimitiveDateTime> for SqlServerLiteralDynWrapper<'a>

Available on crate feature time only.
Source§

fn from(value: &'a PrimitiveDateTime) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Rc<String>> for SqlServerLiteralDynWrapper<'a>

Source§

fn from(value: &'a Rc<String>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a String> for SqlServerLiteralDynWrapper<'a>

Source§

fn from(value: &'a String) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Time> for SqlServerLiteralDynWrapper<'a>

Available on crate feature time only.
Source§

fn from(value: &'a Time) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a UtcDateTime> for SqlServerLiteralDynWrapper<'a>

Available on crate feature time only.
Source§

fn from(value: &'a UtcDateTime) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Uuid> for SqlServerLiteralDynWrapper<'a>

Available on crate feature uuid only.
Source§

fn from(value: &'a Uuid) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Vec<u8>> for SqlServerLiteralDynWrapper<'a>

Source§

fn from(value: &'a Vec<u8>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a bool> for SqlServerLiteralDynWrapper<'a>

Source§

fn from(value: &'a bool) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a char> for SqlServerLiteralDynWrapper<'a>

Source§

fn from(value: &'a char) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a dyn SqlServerLiteral> for SqlServerLiteralDynWrapper<'a>

Source§

fn from(value: &'a dyn SqlServerLiteral) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a f32> for SqlServerLiteralDynWrapper<'a>

Source§

fn from(value: &'a f32) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a f64> for SqlServerLiteralDynWrapper<'a>

Source§

fn from(value: &'a f64) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a i128> for SqlServerLiteralDynWrapper<'a>

Source§

fn from(value: &'a i128) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a i16> for SqlServerLiteralDynWrapper<'a>

Source§

fn from(value: &'a i16) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a i32> for SqlServerLiteralDynWrapper<'a>

Source§

fn from(value: &'a i32) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a i64> for SqlServerLiteralDynWrapper<'a>

Source§

fn from(value: &'a i64) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a i8> for SqlServerLiteralDynWrapper<'a>

Source§

fn from(value: &'a i8) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a isize> for SqlServerLiteralDynWrapper<'a>

Source§

fn from(value: &'a isize) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'static str> for SqlServerLiteralDynWrapper<'a>

Source§

fn from(value: &'static str) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a u128> for SqlServerLiteralDynWrapper<'a>

Source§

fn from(value: &'a u128) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a u16> for SqlServerLiteralDynWrapper<'a>

Source§

fn from(value: &'a u16) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a u32> for SqlServerLiteralDynWrapper<'a>

Source§

fn from(value: &'a u32) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a u64> for SqlServerLiteralDynWrapper<'a>

Source§

fn from(value: &'a u64) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a u8> for SqlServerLiteralDynWrapper<'a>

Source§

fn from(value: &'a u8) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a usize> for SqlServerLiteralDynWrapper<'a>

Source§

fn from(value: &'a usize) -> Self

Converts to this type from the input type.
Source§

impl From<Arc<String>> for SqlServerLiteralDynWrapper<'_>

Source§

fn from(value: Arc<String>) -> Self

Converts to this type from the input type.
Source§

impl From<BigDecimal> for SqlServerLiteralDynWrapper<'_>

Available on crate feature bigdecimal only.
Source§

fn from(value: BigDecimal) -> Self

Converts to this type from the input type.
Source§

impl From<BigDecimalRef<'static>> for SqlServerLiteralDynWrapper<'static>

Available on crate feature bigdecimal only.
Source§

fn from(value: BigDecimalRef<'static>) -> Self

Converts to this type from the input type.
Source§

impl From<BigInt> for SqlServerLiteralDynWrapper<'_>

Available on crate feature num-bigint only.
Source§

fn from(value: BigInt) -> Self

Converts to this type from the input type.
Source§

impl From<BigUint> for SqlServerLiteralDynWrapper<'_>

Available on crate feature num-bigint only.
Source§

fn from(value: BigUint) -> Self

Converts to this type from the input type.
Source§

impl From<Box<dyn SqlServerLiteral>> for SqlServerLiteralDynWrapper<'_>

Source§

fn from(value: Box<dyn SqlServerLiteral>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<Cow<'a, [u8]>> for SqlServerLiteralDynWrapper<'a>

Source§

fn from(value: Cow<'a, [u8]>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<Cow<'a, Arc<String>>> for SqlServerLiteralDynWrapper<'a>

Source§

fn from(value: Cow<'a, Arc<String>>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<Cow<'a, BigDecimal>> for SqlServerLiteralDynWrapper<'a>

Available on crate feature bigdecimal only.
Source§

fn from(value: Cow<'a, BigDecimal>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<Cow<'a, BigInt>> for SqlServerLiteralDynWrapper<'a>

Available on crate feature num-bigint only.
Source§

fn from(value: Cow<'a, BigInt>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<Cow<'a, BigUint>> for SqlServerLiteralDynWrapper<'a>

Available on crate feature num-bigint only.
Source§

fn from(value: Cow<'a, BigUint>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<Cow<'a, Date>> for SqlServerLiteralDynWrapper<'a>

Available on crate feature time only.
Source§

fn from(value: Cow<'a, Date>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<Cow<'a, DateTime<FixedOffset>>> for SqlServerLiteralDynWrapper<'a>

Available on crate feature chrono only.
Source§

fn from(value: Cow<'a, DateTime<FixedOffset>>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<Cow<'a, DateTime<Local>>> for SqlServerLiteralDynWrapper<'a>

Available on crate feature chrono only.
Source§

fn from(value: Cow<'a, DateTime<Local>>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<Cow<'a, DateTime<Utc>>> for SqlServerLiteralDynWrapper<'a>

Available on crate feature chrono only.
Source§

fn from(value: Cow<'a, DateTime<Utc>>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<Cow<'a, Decimal>> for SqlServerLiteralDynWrapper<'a>

Available on crate feature rust_decimal only.
Source§

fn from(value: Cow<'a, Decimal>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<Cow<'a, NaiveDate>> for SqlServerLiteralDynWrapper<'a>

Available on crate feature chrono only.
Source§

fn from(value: Cow<'a, NaiveDate>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<Cow<'a, NaiveDateTime>> for SqlServerLiteralDynWrapper<'a>

Available on crate feature chrono only.
Source§

fn from(value: Cow<'a, NaiveDateTime>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<Cow<'a, NaiveTime>> for SqlServerLiteralDynWrapper<'a>

Available on crate feature chrono only.
Source§

fn from(value: Cow<'a, NaiveTime>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<Cow<'a, OffsetDateTime>> for SqlServerLiteralDynWrapper<'a>

Available on crate feature time only.
Source§

fn from(value: Cow<'a, OffsetDateTime>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<Cow<'a, PrimitiveDateTime>> for SqlServerLiteralDynWrapper<'a>

Available on crate feature time only.
Source§

fn from(value: Cow<'a, PrimitiveDateTime>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<Cow<'a, Rc<String>>> for SqlServerLiteralDynWrapper<'a>

Source§

fn from(value: Cow<'a, Rc<String>>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<Cow<'a, String>> for SqlServerLiteralDynWrapper<'a>

Source§

fn from(value: Cow<'a, String>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<Cow<'a, Time>> for SqlServerLiteralDynWrapper<'a>

Available on crate feature time only.
Source§

fn from(value: Cow<'a, Time>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<Cow<'a, UtcDateTime>> for SqlServerLiteralDynWrapper<'a>

Available on crate feature time only.
Source§

fn from(value: Cow<'a, UtcDateTime>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<Cow<'a, Uuid>> for SqlServerLiteralDynWrapper<'a>

Available on crate feature uuid only.
Source§

fn from(value: Cow<'a, Uuid>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<Cow<'a, Vec<u8>>> for SqlServerLiteralDynWrapper<'a>

Source§

fn from(value: Cow<'a, Vec<u8>>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<Cow<'a, bool>> for SqlServerLiteralDynWrapper<'a>

Source§

fn from(value: Cow<'a, bool>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<Cow<'a, char>> for SqlServerLiteralDynWrapper<'a>

Source§

fn from(value: Cow<'a, char>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<Cow<'a, f32>> for SqlServerLiteralDynWrapper<'a>

Source§

fn from(value: Cow<'a, f32>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<Cow<'a, f64>> for SqlServerLiteralDynWrapper<'a>

Source§

fn from(value: Cow<'a, f64>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<Cow<'a, i128>> for SqlServerLiteralDynWrapper<'a>

Source§

fn from(value: Cow<'a, i128>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<Cow<'a, i16>> for SqlServerLiteralDynWrapper<'a>

Source§

fn from(value: Cow<'a, i16>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<Cow<'a, i32>> for SqlServerLiteralDynWrapper<'a>

Source§

fn from(value: Cow<'a, i32>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<Cow<'a, i64>> for SqlServerLiteralDynWrapper<'a>

Source§

fn from(value: Cow<'a, i64>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<Cow<'a, i8>> for SqlServerLiteralDynWrapper<'a>

Source§

fn from(value: Cow<'a, i8>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<Cow<'a, isize>> for SqlServerLiteralDynWrapper<'a>

Source§

fn from(value: Cow<'a, isize>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<Cow<'a, str>> for SqlServerLiteralDynWrapper<'a>

Source§

fn from(value: Cow<'a, str>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<Cow<'a, u128>> for SqlServerLiteralDynWrapper<'a>

Source§

fn from(value: Cow<'a, u128>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<Cow<'a, u16>> for SqlServerLiteralDynWrapper<'a>

Source§

fn from(value: Cow<'a, u16>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<Cow<'a, u32>> for SqlServerLiteralDynWrapper<'a>

Source§

fn from(value: Cow<'a, u32>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<Cow<'a, u64>> for SqlServerLiteralDynWrapper<'a>

Source§

fn from(value: Cow<'a, u64>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<Cow<'a, u8>> for SqlServerLiteralDynWrapper<'a>

Source§

fn from(value: Cow<'a, u8>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<Cow<'a, usize>> for SqlServerLiteralDynWrapper<'a>

Source§

fn from(value: Cow<'a, usize>) -> Self

Converts to this type from the input type.
Source§

impl From<Date> for SqlServerLiteralDynWrapper<'_>

Available on crate feature time only.
Source§

fn from(value: Date) -> Self

Converts to this type from the input type.
Source§

impl From<DateTime<FixedOffset>> for SqlServerLiteralDynWrapper<'_>

Available on crate feature chrono only.
Source§

fn from(value: DateTime<FixedOffset>) -> Self

Converts to this type from the input type.
Source§

impl From<DateTime<Local>> for SqlServerLiteralDynWrapper<'_>

Available on crate feature chrono only.
Source§

fn from(value: DateTime<Local>) -> Self

Converts to this type from the input type.
Source§

impl From<DateTime<Utc>> for SqlServerLiteralDynWrapper<'_>

Available on crate feature chrono only.
Source§

fn from(value: DateTime<Utc>) -> Self

Converts to this type from the input type.
Source§

impl From<Decimal> for SqlServerLiteralDynWrapper<'_>

Available on crate feature rust_decimal only.
Source§

fn from(value: Decimal) -> Self

Converts to this type from the input type.
Source§

impl From<NaiveDate> for SqlServerLiteralDynWrapper<'_>

Available on crate feature chrono only.
Source§

fn from(value: NaiveDate) -> Self

Converts to this type from the input type.
Source§

impl From<NaiveDateTime> for SqlServerLiteralDynWrapper<'_>

Available on crate feature chrono only.
Source§

fn from(value: NaiveDateTime) -> Self

Converts to this type from the input type.
Source§

impl From<NaiveTime> for SqlServerLiteralDynWrapper<'_>

Available on crate feature chrono only.
Source§

fn from(value: NaiveTime) -> Self

Converts to this type from the input type.
Source§

impl From<OffsetDateTime> for SqlServerLiteralDynWrapper<'_>

Available on crate feature time only.
Source§

fn from(value: OffsetDateTime) -> Self

Converts to this type from the input type.
Source§

impl<T: SqlServerLiteral + 'static> From<Option<T>> for SqlServerLiteralDynWrapper<'_>

Source§

fn from(value: Option<T>) -> Self

Converts to this type from the input type.
Source§

impl From<PrimitiveDateTime> for SqlServerLiteralDynWrapper<'_>

Available on crate feature time only.
Source§

fn from(value: PrimitiveDateTime) -> Self

Converts to this type from the input type.
Source§

impl From<Rc<String>> for SqlServerLiteralDynWrapper<'_>

Source§

fn from(value: Rc<String>) -> Self

Converts to this type from the input type.
Source§

impl From<String> for SqlServerLiteralDynWrapper<'_>

Source§

fn from(value: String) -> Self

Converts to this type from the input type.
Source§

impl From<Time> for SqlServerLiteralDynWrapper<'_>

Available on crate feature time only.
Source§

fn from(value: Time) -> Self

Converts to this type from the input type.
Source§

impl From<UtcDateTime> for SqlServerLiteralDynWrapper<'_>

Available on crate feature time only.
Source§

fn from(value: UtcDateTime) -> Self

Converts to this type from the input type.
Source§

impl From<Uuid> for SqlServerLiteralDynWrapper<'_>

Available on crate feature uuid only.
Source§

fn from(value: Uuid) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<u8>> for SqlServerLiteralDynWrapper<'_>

Source§

fn from(value: Vec<u8>) -> Self

Converts to this type from the input type.
Source§

impl From<bool> for SqlServerLiteralDynWrapper<'_>

Source§

fn from(value: bool) -> Self

Converts to this type from the input type.
Source§

impl From<char> for SqlServerLiteralDynWrapper<'_>

Source§

fn from(value: char) -> Self

Converts to this type from the input type.
Source§

impl From<f32> for SqlServerLiteralDynWrapper<'_>

Source§

fn from(value: f32) -> Self

Converts to this type from the input type.
Source§

impl From<f64> for SqlServerLiteralDynWrapper<'_>

Source§

fn from(value: f64) -> Self

Converts to this type from the input type.
Source§

impl From<i128> for SqlServerLiteralDynWrapper<'_>

Source§

fn from(value: i128) -> Self

Converts to this type from the input type.
Source§

impl From<i16> for SqlServerLiteralDynWrapper<'_>

Source§

fn from(value: i16) -> Self

Converts to this type from the input type.
Source§

impl From<i32> for SqlServerLiteralDynWrapper<'_>

Source§

fn from(value: i32) -> Self

Converts to this type from the input type.
Source§

impl From<i64> for SqlServerLiteralDynWrapper<'_>

Source§

fn from(value: i64) -> Self

Converts to this type from the input type.
Source§

impl From<i8> for SqlServerLiteralDynWrapper<'_>

Source§

fn from(value: i8) -> Self

Converts to this type from the input type.
Source§

impl From<isize> for SqlServerLiteralDynWrapper<'_>

Source§

fn from(value: isize) -> Self

Converts to this type from the input type.
Source§

impl From<u128> for SqlServerLiteralDynWrapper<'_>

Source§

fn from(value: u128) -> Self

Converts to this type from the input type.
Source§

impl From<u16> for SqlServerLiteralDynWrapper<'_>

Source§

fn from(value: u16) -> Self

Converts to this type from the input type.
Source§

impl From<u32> for SqlServerLiteralDynWrapper<'_>

Source§

fn from(value: u32) -> Self

Converts to this type from the input type.
Source§

impl From<u64> for SqlServerLiteralDynWrapper<'_>

Source§

fn from(value: u64) -> Self

Converts to this type from the input type.
Source§

impl From<u8> for SqlServerLiteralDynWrapper<'_>

Source§

fn from(value: u8) -> Self

Converts to this type from the input type.
Source§

impl From<usize> for SqlServerLiteralDynWrapper<'_>

Source§

fn from(value: usize) -> Self

Converts to this type from the input type.
Source§

impl<'a> Serialize for SqlServerLiteralDynWrapper<'a>

Available on crate feature serde only.
Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<'a> SqlServerLiteral for SqlServerLiteralDynWrapper<'a>

Source§

fn append_sql_literal(&self, out: &mut String) -> Result<(), SqlLiteralError>

Appends the SQL literal representation of this value to the given string.
Source§

fn append_sql_literal_fmt( &self, out: &mut Formatter<'_>, ) -> Result<(), SqlLiteralError>

Appends the SQL literal representation of this value to the given writer.

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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
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.