pub struct AnyValue { /* private fields */ }
Trait Implementations§
Source§impl From<MssqlValue> for AnyValue
Available on crate feature mssql
only.
impl From<MssqlValue> for AnyValue
Available on crate feature
mssql
only.Source§fn from(value: MssqlValue) -> Self
fn from(value: MssqlValue) -> Self
Converts to this type from the input type.
Source§impl From<MySqlValue> for AnyValue
Available on crate feature mysql
only.
impl From<MySqlValue> for AnyValue
Available on crate feature
mysql
only.Source§fn from(value: MySqlValue) -> Self
fn from(value: MySqlValue) -> Self
Converts to this type from the input type.
Source§impl From<SqliteValue> for AnyValue
Available on crate feature sqlite
only.
impl From<SqliteValue> for AnyValue
Available on crate feature
sqlite
only.Source§fn from(value: SqliteValue) -> Self
fn from(value: SqliteValue) -> Self
Converts to this type from the input type.
Source§impl Value for AnyValue
impl Value for AnyValue
type Database = Any
Source§fn as_ref(&self) -> <Self::Database as HasValueRef<'_>>::ValueRef
fn as_ref(&self) -> <Self::Database as HasValueRef<'_>>::ValueRef
Get this value as a reference.
Source§fn type_info(&self) -> Cow<'_, AnyTypeInfo>
fn type_info(&self) -> Cow<'_, AnyTypeInfo>
Get the type information for this value.
Source§fn try_decode<'r, T>(&'r self) -> Result<T, Error>
fn try_decode<'r, T>(&'r self) -> Result<T, Error>
Decode this single value into the requested type. Read more
Source§fn decode_unchecked<'r, T>(&'r self) -> T
fn decode_unchecked<'r, T>(&'r self) -> T
Decode this single value into the requested type. Read more
Auto Trait Implementations§
impl !Freeze for AnyValue
impl RefUnwindSafe for AnyValue
impl Send for AnyValue
impl Sync for AnyValue
impl Unpin for AnyValue
impl UnwindSafe for AnyValue
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
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