Crate tld_extract
source ·Expand description
Use the public suffix list to resolve the top-level domain name
Examples
use tld_extract::TLDExtract;
let source = tld_extract::Source::Snapshot;
let suffix = tld_extract::SuffixList::new(source, false, None);
let mut extract = TLDExtract::new(suffix, true).unwrap();
let e = extract.extract(" www.setup.zip");
println!("{:#?}", e);
Structs
- ExtractResult
- Mainly implementing the resolution and classification of domain names
- TLDExtract
- TLDTrieTree
Enums
- Where to read data as a prefix list
- TLDExtractError Enum
Type Aliases
- TLDExtractError