Function extract_domain

Source
pub fn extract_domain(url: &str) -> Result<String>
Expand description

Extracts the domain from a URL

§Arguments

  • url - The URL string

§Returns

Result containing the domain or an error