mirror of
https://github.com/launchbadge/sqlx
synced 2024-11-10 06:24:16 +00:00
Updated documentation to reflect inet allows for IpAddr (#2053)
Co-authored-by: Austin Bonander <austin.bonander@gmail.com> Co-authored-by: Austin Bonander <austin.bonander@gmail.com>
This commit is contained in:
parent
2d65c5de80
commit
3f7111f05d
1 changed files with 7 additions and 0 deletions
|
@ -72,6 +72,13 @@
|
|||
//! | Rust type | Postgres type(s) |
|
||||
//! |---------------------------------------|------------------------------------------------------|
|
||||
//! | `ipnetwork::IpNetwork` | INET, CIDR |
|
||||
//! | `std::net::IpAddr` | INET, CIDR |
|
||||
//!
|
||||
//! Note that because `IpAddr` does not support network prefixes, it is an error to attempt to decode
|
||||
//! an `IpAddr` from a `INET` or `CIDR` value with a network prefix smaller than the address' full width:
|
||||
//! `/32` for IPv4 addresses and `/128` for IPv6 addresses.
|
||||
//!
|
||||
//! `IpNetwork` does not have this limitation.
|
||||
//!
|
||||
//! ### [`mac_address`](https://crates.io/crates/mac_address)
|
||||
//!
|
||||
|
|
Loading…
Reference in a new issue