pub fn extract_domain(url: &str) -> Result<String>
Extracts the domain from a URL
url
Result containing the domain or an error