Struct validators::ipv4::IPv4Validator
source · pub struct IPv4Validator {
pub port: ValidatorOption,
pub local: ValidatorOption,
pub ipv6: ValidatorOption,
}Fields§
§port: ValidatorOption§local: ValidatorOption§ipv6: ValidatorOptionImplementations§
source§impl IPv4Validator
impl IPv4Validator
pub fn is_ipv4(&self, full_ipv4: &str) -> bool
pub fn parse_string(&self, full_ipv4: String) -> IPv4Result
pub fn parse_str(&self, full_ipv4: &str) -> IPv4Result
Trait Implementations§
source§impl Debug for IPv4Validator
impl Debug for IPv4Validator
source§impl PartialEq<IPv4Validator> for IPv4Validator
impl PartialEq<IPv4Validator> for IPv4Validator
source§fn eq(&self, other: &IPv4Validator) -> bool
fn eq(&self, other: &IPv4Validator) -> bool
impl StructuralPartialEq for IPv4Validator
Auto Trait Implementations§
impl RefUnwindSafe for IPv4Validator
impl Send for IPv4Validator
impl Sync for IPv4Validator
impl Unpin for IPv4Validator
impl UnwindSafe for IPv4Validator
Blanket Implementations§
§impl<T> IntoCollection<T> for T
impl<T> IntoCollection<T> for T
§fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
Converts
self into a collection.