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