diff --git a/postgres-types/src/lib.rs b/postgres-types/src/lib.rs index f5d841cd1..345b8a1cf 100644 --- a/postgres-types/src/lib.rs +++ b/postgres-types/src/lib.rs @@ -31,6 +31,7 @@ //! //! # #[cfg(feature = "derive")] //! #[derive(Debug, ToSql, FromSql)] +//! #[postgres(name = "Mood")] //! enum Mood { //! Sad, //! Ok, @@ -52,6 +53,7 @@ //! //! # #[cfg(feature = "derive")] //! #[derive(Debug, ToSql, FromSql)] +//! #[postgres(name = "SessionId")] //! struct SessionId(Vec); //! ``` //! @@ -88,6 +90,7 @@ //! //! # #[cfg(feature = "derive")] //! #[derive(Debug, ToSql, FromSql)] +//! #[postgres(name = "InventoryItem")] //! struct InventoryItem { //! name: String, //! supplier_id: i32,