validators 0.22.5

This is a library for validating and modeling user input and this crate provides models, function, traits, errors and other dependencies used with the `validators-derive` crate.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use alloc::string::String;

use std::net::{Ipv4Addr, Ipv6Addr};

#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub enum Host {
    /// non-fully qualified and ascii-encoded domain name
    Domain(String),
    IPv4(Ipv4Addr),
    IPv6(Ipv6Addr),
}