Function dispo::is_valid_domain

source ·
pub fn is_valid_domain(domain: &str) -> bool
Expand description

Returns true if the domain is not disposable, doesn’t check if the domain itself has a valid format.

Examples

let x = dispo::is_valid_domain("example.com");
assert_eq!(x, true);

let x = dispo::is_valid_domain("tempmail.de");
assert_eq!(x, false);

let x = dispo::is_valid_domain("tempmail");
assert_eq!(x, true);