Enum rusqlite::types::ToSqlOutput
source · #[non_exhaustive]
pub enum ToSqlOutput<'a> {
Borrowed(ValueRef<'a>),
Owned(Value),
ZeroBlob(i32),
Array(Array),
}
Expand description
ToSqlOutput
represents the possible output types for implementers of the
ToSql
trait.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Borrowed(ValueRef<'a>)
A borrowed SQLite-representable value.
Owned(Value)
An owned SQLite-representable value.
ZeroBlob(i32)
Available on crate feature
blob
only.A BLOB of the given length that is filled with zeroes.
Array(Array)
Available on crate feature
array
only.feature = "array"
Trait Implementations§
source§impl<'a> Clone for ToSqlOutput<'a>
impl<'a> Clone for ToSqlOutput<'a>
source§fn clone(&self) -> ToSqlOutput<'a>
fn clone(&self) -> ToSqlOutput<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for ToSqlOutput<'a>
impl<'a> Debug for ToSqlOutput<'a>
source§impl From<Null> for ToSqlOutput<'_>
impl From<Null> for ToSqlOutput<'_>
source§impl From<String> for ToSqlOutput<'_>
impl From<String> for ToSqlOutput<'_>
source§impl From<Uuid> for ToSqlOutput<'_>
impl From<Uuid> for ToSqlOutput<'_>
source§impl From<bool> for ToSqlOutput<'_>
impl From<bool> for ToSqlOutput<'_>
source§impl From<f32> for ToSqlOutput<'_>
impl From<f32> for ToSqlOutput<'_>
source§impl From<f64> for ToSqlOutput<'_>
impl From<f64> for ToSqlOutput<'_>
source§impl From<i128> for ToSqlOutput<'_>
impl From<i128> for ToSqlOutput<'_>
source§impl From<i16> for ToSqlOutput<'_>
impl From<i16> for ToSqlOutput<'_>
source§impl From<i32> for ToSqlOutput<'_>
impl From<i32> for ToSqlOutput<'_>
source§impl From<i64> for ToSqlOutput<'_>
impl From<i64> for ToSqlOutput<'_>
source§impl From<i8> for ToSqlOutput<'_>
impl From<i8> for ToSqlOutput<'_>
source§impl From<isize> for ToSqlOutput<'_>
impl From<isize> for ToSqlOutput<'_>
source§impl From<u16> for ToSqlOutput<'_>
impl From<u16> for ToSqlOutput<'_>
source§impl From<u32> for ToSqlOutput<'_>
impl From<u32> for ToSqlOutput<'_>
source§impl From<u8> for ToSqlOutput<'_>
impl From<u8> for ToSqlOutput<'_>
source§impl<'a> PartialEq<ToSqlOutput<'a>> for ToSqlOutput<'a>
impl<'a> PartialEq<ToSqlOutput<'a>> for ToSqlOutput<'a>
source§fn eq(&self, other: &ToSqlOutput<'a>) -> bool
fn eq(&self, other: &ToSqlOutput<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl ToSql for ToSqlOutput<'_>
impl ToSql for ToSqlOutput<'_>
source§fn to_sql(&self) -> Result<ToSqlOutput<'_>>
fn to_sql(&self) -> Result<ToSqlOutput<'_>>
Converts Rust value to SQLite value