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