Trait validator::ValidateIp
source · pub trait ValidateIp {
// Required methods
fn validate_ipv4(&self) -> bool;
fn validate_ipv6(&self) -> bool;
fn validate_ip(&self) -> bool;
}
Required Methods§
sourcefn validate_ipv4(&self) -> bool
fn validate_ipv4(&self) -> bool
Validates whether the given string is an IP V4
sourcefn validate_ipv6(&self) -> bool
fn validate_ipv6(&self) -> bool
Validates whether the given string is an IP V6
sourcefn validate_ip(&self) -> bool
fn validate_ip(&self) -> bool
Validates whether the given string is an IP