pub struct AnyValue { /* private fields */ }
Trait Implementations
sourceimpl From<MssqlValue> for AnyValue
impl From<MssqlValue> for AnyValue
sourcepub fn from(value: MssqlValue) -> AnyValue
pub fn from(value: MssqlValue) -> AnyValue
Performs the conversion.
sourceimpl From<MySqlValue> for AnyValue
impl From<MySqlValue> for AnyValue
sourcepub fn from(value: MySqlValue) -> AnyValue
pub fn from(value: MySqlValue) -> AnyValue
Performs the conversion.
sourceimpl From<SqliteValue> for AnyValue
impl From<SqliteValue> for AnyValue
sourcepub fn from(value: SqliteValue) -> AnyValue
pub fn from(value: SqliteValue) -> AnyValue
Performs the conversion.
sourceimpl Value for AnyValue
impl Value for AnyValue
type Database = Any
sourcepub fn as_ref(
&self
) -> <<AnyValue as Value>::Database as HasValueRef<'_>>::ValueRef
pub fn as_ref(
&self
) -> <<AnyValue as Value>::Database as HasValueRef<'_>>::ValueRef
Get this value as a reference.
sourcepub fn type_info(&self) -> Cow<'_, AnyTypeInfo>
pub fn type_info(&self) -> Cow<'_, AnyTypeInfo>
Get the type information for this value.
sourcefn decode<'r, T>(&'r self) -> T where
T: Decode<'r, Self::Database> + Type<Self::Database>,
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
sourcefn decode_unchecked<'r, T>(&'r self) -> T where
T: Decode<'r, Self::Database>,
fn decode_unchecked<'r, T>(&'r self) -> T where
T: Decode<'r, Self::Database>,
Decode this single value into the requested type. Read more
Auto Trait Implementations
impl RefUnwindSafe for AnyValue
impl Send for AnyValue
impl Sync for AnyValue
impl Unpin for AnyValue
impl UnwindSafe for AnyValue
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more