Skip to content

Commit d35139d

Browse files
committed
Fix ToSql/FromSql docs
1 parent 7d88f55 commit d35139d

File tree

1 file changed

+12
-9
lines changed
  • tokio-postgres/src/types

1 file changed

+12
-9
lines changed

tokio-postgres/src/types/mod.rs

+12-9
Original file line numberDiff line numberDiff line change
@@ -252,21 +252,22 @@ impl WrongType {
252252
/// In addition, some implementations are provided for types in third party
253253
/// crates. These are disabled by default; to opt into one of these
254254
/// 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
256256
/// the implementation for the `serde_json::Value` type.
257257
///
258258
/// | Rust type | Postgres type(s) |
259259
/// |---------------------------------|-------------------------------------|
260-
/// | `serialize::json::Json` | JSON, JSONB |
261-
/// | `serde_json::Value` | JSON, JSONB |
262-
/// | `time::Timespec` | TIMESTAMP, TIMESTAMP WITH TIME ZONE |
263260
/// | `chrono::NaiveDateTime` | TIMESTAMP |
264261
/// | `chrono::DateTime<Utc>` | TIMESTAMP WITH TIME ZONE |
265262
/// | `chrono::DateTime<Local>` | TIMESTAMP WITH TIME ZONE |
266263
/// | `chrono::DateTime<FixedOffset>` | TIMESTAMP WITH TIME ZONE |
267264
/// | `chrono::NaiveDate` | DATE |
268265
/// | `chrono::NaiveTime` | TIME |
269266
/// | `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 |
270271
/// | `uuid::Uuid` | UUID |
271272
/// | `bit_vec::BitVec` | BIT, VARBIT |
272273
/// | `eui48::MacAddress` | MACADDR |
@@ -496,25 +497,27 @@ pub enum IsNull {
496497
/// | `&str`/`String` | VARCHAR, CHAR(n), TEXT, CITEXT, NAME |
497498
/// | `&[u8]`/Vec<u8>` | BYTEA |
498499
/// | `HashMap<String, Option<String>>` | HSTORE |
499-
/// | `SystemTime` | TIMESTAMP, TIMESTAMP WITH TIME ZONE |
500+
/// | `SystemTime` | TIMESTAMP, TIMESTAMP WITH TIME ZONE |
500501
///
501502
/// In addition, some implementations are provided for types in third party
502503
/// crates. These are disabled by default; to opt into one of these
503504
/// 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
505506
/// the implementation for the `serde_json::Value` type.
506507
///
507508
/// | Rust type | Postgres type(s) |
508509
/// |---------------------------------|-------------------------------------|
509-
/// | `serialize::json::Json` | JSON, JSONB |
510-
/// | `serde_json::Value` | JSON, JSONB |
511-
/// | `time::Timespec` | TIMESTAMP, TIMESTAMP WITH TIME ZONE |
512510
/// | `chrono::NaiveDateTime` | TIMESTAMP |
513511
/// | `chrono::DateTime<Utc>` | TIMESTAMP WITH TIME ZONE |
514512
/// | `chrono::DateTime<Local>` | TIMESTAMP WITH TIME ZONE |
515513
/// | `chrono::DateTime<FixedOffset>` | TIMESTAMP WITH TIME ZONE |
516514
/// | `chrono::NaiveDate` | DATE |
517515
/// | `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 |
518521
/// | `uuid::Uuid` | UUID |
519522
/// | `bit_vec::BitVec` | BIT, VARBIT |
520523
/// | `eui48::MacAddress` | MACADDR |

0 commit comments

Comments
 (0)