Struct sqlx_oldapi::any::AnyValue

source ยท
pub struct AnyValue { /* private fields */ }

Trait Implementationsยง

sourceยง

impl From<MssqlValue> for AnyValue

sourceยง

fn from(value: MssqlValue) -> AnyValue

Converts to this type from the input type.
sourceยง

impl From<MySqlValue> for AnyValue

sourceยง

fn from(value: MySqlValue) -> AnyValue

Converts to this type from the input type.
sourceยง

impl From<PgValue> for AnyValue

sourceยง

fn from(value: PgValue) -> AnyValue

Converts to this type from the input type.
sourceยง

impl From<SqliteValue> for AnyValue

sourceยง

fn from(value: SqliteValue) -> AnyValue

Converts to this type from the input type.
sourceยง

impl Value for AnyValue

ยง

type Database = Any

sourceยง

fn as_ref(&self) -> <<AnyValue as Value>::Database as HasValueRef<'_>>::ValueRef

Get this value as a reference.
sourceยง

fn type_info(&self) -> Cow<'_, AnyTypeInfo>

Get the type information for this value.
sourceยง

fn is_null(&self) -> bool

Returns true if the SQL value is NULL.
sourceยง

fn try_decode<'r, T>(&'r self) -> Result<T, Error>
where T: Decode<'r, <AnyValue as Value>::Database> + Type<<AnyValue as Value>::Database>,

Decode this single value into the requested type. Read more
sourceยง

fn decode<'r, T>(&'r self) -> T
where T: Decode<'r, Self::Database> + Type<Self::Database>,

Decode this single value into the requested type. Read more
sourceยง

fn decode_unchecked<'r, T>(&'r self) -> T
where T: Decode<'r, Self::Database>,

Decode this single value into the requested type. Read more
sourceยง

fn try_decode_unchecked<'r, T>(&'r self) -> Result<T, Error>
where T: Decode<'r, Self::Database>,

Decode this single value into the requested 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

ยง

type Output = T

Should always be Self
sourceยง

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

ยง

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>,

ยง

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