pub fn ipv4(s: impl AsRef<str>) -> Result<Ipv4Addr, AddrParseError>Expand description
Convert a string-like item into an IPv4 address.
use valust_utils::net::ipv4;
#[derive(Valust)]
struct Stringify {
#[trans(func(String => try(ipv4)))]
ip: std::net::Ipv4Addr,
}