We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d65c5d commit 3f7111fCopy full SHA for 3f7111f
sqlx-core/src/postgres/types/mod.rs
@@ -72,6 +72,13 @@
72
//! | Rust type | Postgres type(s) |
73
//! |---------------------------------------|------------------------------------------------------|
74
//! | `ipnetwork::IpNetwork` | INET, CIDR |
75
+//! | `std::net::IpAddr` | INET, CIDR |
76
+//!
77
+//! Note that because `IpAddr` does not support network prefixes, it is an error to attempt to decode
78
+//! an `IpAddr` from a `INET` or `CIDR` value with a network prefix smaller than the address' full width:
79
+//! `/32` for IPv4 addresses and `/128` for IPv6 addresses.
80
81
+//! `IpNetwork` does not have this limitation.
82
//!
83
//! ### [`mac_address`](https://crates.io/crates/mac_address)
84
0 commit comments