Module diesel::types [] [src]

Types which represent a native SQL data type, and the conversions between them and Rust primitives. Additional types can be added by other crates.

Modules

ops

Apps should not need to concern themselves with this module.

Structs

Array
BigInt
Binary
Bool
Date
Double
Float
Integer
Interval
Nullable
Numeric
Oid
SmallInt
Text
Time
Timestamp
VarChar

Enums

IsNull

Tiny enum to make the return type of ToSql more descriptive

Traits

FromSql

How to deserialize a single field of a given type. The input will always be the binary representation, not the text.

FromSqlRow

How to deserialize multiple fields, with a known type. This type is implemented for tuples of various sizes.

NativeSqlType
SqlOrd
ToSql

Serializes a single value to be sent to the database. The output will be included as a bind parameter, and is expected to be the binary format, not text.

Type Definitions

BigSerial
Serial
SmallSerial