Function get_preset_tlds

Source
pub fn get_preset_tlds(preset: &str) -> Option<Vec<String>>
Expand description

Get predefined TLD presets for common use cases.

This function provides curated TLD lists for common scenarios. For custom preset support, use get_preset_tlds_with_custom().

§Arguments

  • preset - The preset name (“startup”, “enterprise”, “country”)

§Returns

Optional vector of TLD strings, None if preset doesn’t exist.

§Examples

use domain_check_lib::get_preset_tlds;

let startup_tlds = get_preset_tlds("startup").unwrap();
assert!(startup_tlds.contains(&"io".to_string()));