[][src]Enum diesel::sqlite::SqliteType

pub enum SqliteType {
    Binary,
    Text,
    Float,
    Double,
    SmallInt,
    Integer,
    Long,
}

Determines how a bind parameter is given to SQLite

Diesel deals with bind parameters after serialization as opaque blobs of bytes. However, SQLite instead has several functions where it expects the relevant C types.

The variants of this struct determine what bytes are expected from ToSql impls.

Variants

Binary

Bind using sqlite3_bind_blob

Text

Bind using sqlite3_bind_text

Float

bytes should contain an f32

Double

bytes should contain an f64

SmallInt

bytes should contain an i16

Integer

bytes should contain an i32

Long

bytes should contain an i64

Trait Implementations

impl Clone for SqliteType[src]

impl Copy for SqliteType[src]

impl Debug for SqliteType[src]

impl Eq for SqliteType[src]

impl Hash for SqliteType[src]

impl PartialEq<SqliteType> for SqliteType[src]

impl StructuralEq for SqliteType[src]

impl StructuralPartialEq for SqliteType[src]

Auto Trait Implementations

impl RefUnwindSafe for SqliteType

impl Send for SqliteType

impl Sync for SqliteType

impl Unpin for SqliteType

impl UnwindSafe for SqliteType

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoSql for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]