@@ -252,21 +252,22 @@ impl WrongType {
252
252
/// In addition, some implementations are provided for types in third party
253
253
/// crates. These are disabled by default; to opt into one of these
254
254
/// implementations, activate the Cargo feature corresponding to the crate's
255
- /// name prefixed by `with-`. For example, the `with-serde_json` feature enables
255
+ /// name prefixed by `with-`. For example, the `with-serde_json-1 ` feature enables
256
256
/// the implementation for the `serde_json::Value` type.
257
257
///
258
258
/// | Rust type | Postgres type(s) |
259
259
/// |---------------------------------|-------------------------------------|
260
- /// | `serialize::json::Json` | JSON, JSONB |
261
- /// | `serde_json::Value` | JSON, JSONB |
262
- /// | `time::Timespec` | TIMESTAMP, TIMESTAMP WITH TIME ZONE |
263
260
/// | `chrono::NaiveDateTime` | TIMESTAMP |
264
261
/// | `chrono::DateTime<Utc>` | TIMESTAMP WITH TIME ZONE |
265
262
/// | `chrono::DateTime<Local>` | TIMESTAMP WITH TIME ZONE |
266
263
/// | `chrono::DateTime<FixedOffset>` | TIMESTAMP WITH TIME ZONE |
267
264
/// | `chrono::NaiveDate` | DATE |
268
265
/// | `chrono::NaiveTime` | TIME |
269
266
/// | `eui48::MacAddress` | MACADDR |
267
+ /// | `geo_types::Point<f64>` | POINT |
268
+ /// | `geo_types::Rect<f64>` | BOX |
269
+ /// | `geo_types::LineString<f64>` | PATH |
270
+ /// | `serde_json::Value` | JSON, JSONB |
270
271
/// | `uuid::Uuid` | UUID |
271
272
/// | `bit_vec::BitVec` | BIT, VARBIT |
272
273
/// | `eui48::MacAddress` | MACADDR |
@@ -496,25 +497,27 @@ pub enum IsNull {
496
497
/// | `&str`/`String` | VARCHAR, CHAR(n), TEXT, CITEXT, NAME |
497
498
/// | `&[u8]`/Vec<u8>` | BYTEA |
498
499
/// | `HashMap<String, Option<String>>` | HSTORE |
499
- /// | `SystemTime` | TIMESTAMP, TIMESTAMP WITH TIME ZONE |
500
+ /// | `SystemTime` | TIMESTAMP, TIMESTAMP WITH TIME ZONE |
500
501
///
501
502
/// In addition, some implementations are provided for types in third party
502
503
/// crates. These are disabled by default; to opt into one of these
503
504
/// implementations, activate the Cargo feature corresponding to the crate's
504
- /// name prefixed by `with-`. For example, the `with-serde_json` feature enables
505
+ /// name prefixed by `with-`. For example, the `with-serde_json-1 ` feature enables
505
506
/// the implementation for the `serde_json::Value` type.
506
507
///
507
508
/// | Rust type | Postgres type(s) |
508
509
/// |---------------------------------|-------------------------------------|
509
- /// | `serialize::json::Json` | JSON, JSONB |
510
- /// | `serde_json::Value` | JSON, JSONB |
511
- /// | `time::Timespec` | TIMESTAMP, TIMESTAMP WITH TIME ZONE |
512
510
/// | `chrono::NaiveDateTime` | TIMESTAMP |
513
511
/// | `chrono::DateTime<Utc>` | TIMESTAMP WITH TIME ZONE |
514
512
/// | `chrono::DateTime<Local>` | TIMESTAMP WITH TIME ZONE |
515
513
/// | `chrono::DateTime<FixedOffset>` | TIMESTAMP WITH TIME ZONE |
516
514
/// | `chrono::NaiveDate` | DATE |
517
515
/// | `chrono::NaiveTime` | TIME |
516
+ /// | `eui48::MacAddress` | MACADDR |
517
+ /// | `geo_types::Point<f64>` | POINT |
518
+ /// | `geo_types::Rect<f64>` | BOX |
519
+ /// | `geo_types::LineString<f64>` | PATH |
520
+ /// | `serde_json::Value` | JSON, JSONB |
518
521
/// | `uuid::Uuid` | UUID |
519
522
/// | `bit_vec::BitVec` | BIT, VARBIT |
520
523
/// | `eui48::MacAddress` | MACADDR |
0 commit comments