Crate tldextract_rs

Source
Expand description

Use the public suffix list to resolve the top-level domain name

§Examples

use tldextract_rs::TLDExtract;
let source = tldextract_rs::Source::Snapshot;
let suffix = tldextract_rs::SuffixList::new(source, false, None);
let mut extract = TLDExtract::new(suffix, true).unwrap();
let e = extract.extract("  www.setup.zip");
println!("{:#?}", e);

Structs§

ExtractResult
ExtractResult
SuffixList
Mainly implementing the resolution and classification of domain names
TLDExtract
TLDExtract
TLDTrieTree
TLDTrieTree

Enums§

Source
Where to read data as a prefix list
TLDExtractError
TLDExtractError Enum

Type Aliases§

Result
TLDExtractError