Skip to main content

Module types

Module types 

Source
Expand description

Type conversion traits and implementations for PostgreSQL types.

This module provides traits for converting Rust types to/from PostgreSQL wire format.

Re-exports§

pub use numeric::Numeric;
pub use temporal::Date;
pub use temporal::Time;
pub use temporal::Timestamp;

Modules§

numeric
NUMERIC/DECIMAL type support for PostgreSQL.
temporal
Timestamp type conversions for PostgreSQL.

Structs§

Cidr
IPv4/IPv6 network block (cidr)
Inet
IPv4/IPv6 host/network address (inet)
Json
JSON value (wraps the raw JSON string)
MacAddr
MAC address (macaddr)
Uuid
UUID type (uses String internally for simplicity)

Enums§

TypeError
Error type for type conversion failures.

Traits§

FromPg
Trait for converting PostgreSQL binary/text data to Rust types.
ToPg
Trait for converting Rust types to PostgreSQL wire format.