We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bcd7a7c commit 8181008Copy full SHA for 8181008
sqlx-core/src/postgres/types/mod.rs
@@ -74,6 +74,12 @@
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
85
//! Requires the `mac_address` Cargo feature flag.
0 commit comments