fn api_endpoint(id: &str, flavor: &Flavor) -> String {
    match flavor {
        Flavor::Retail | Flavor::RetailPTR | Flavor::RetailBeta => match id {
            "-1" => "https://www.tukui.org/api.php?ui=tukui".to_owned(),
            "-2" => "https://www.tukui.org/api.php?ui=elvui".to_owned(),
            _ => format!("https://www.tukui.org/api.php?addon={}", id),
        },
        Flavor::Classic | Flavor::ClassicPTR => {
            format!("https://www.tukui.org/api.php?classic-addon={}", id)
        }
    }
}
/// Return the tukui API endpoint.
Return the tukui API endpoint.
Return the tukui API endpoint .
fn api_endpoint(id: &str, flavor: &Flavor) -> String {
    match flavor {
        Flavor::Retail | Flavor::RetailPTR | Flavor::RetailBeta => match id {
            "-1" => "https://www.tukui.org/api.php?ui=tukui".to_owned(),
            "-2" => "https://www.tukui.org/api.php?ui=elvui".to_owned(),
            _ => format!("https://www.tukui.org/api.php?addon={}", id),
        },
        Flavor::Classic | Flavor::ClassicPTR => {
            format!("https://www.tukui.org/api.php?classic-addon={}", id)
        }
    }
}
fn api_endpoint ( id : & str , flavor : & Flavor ) -> String { match flavor { Flavor :: Retail | Flavor :: RetailPTR | Flavor :: RetailBeta => match id { " " => " " . to_owned ( ) , " " => " " . to_owned ( ) , _ => format ! ( " " id ) , } , Flavor :: Classic | Flavor :: ClassicPTR => { format ! ( " " id ) } } }
Return the tukui API endpoint.
Return the tukui API endpoint .
id
&str
flavor
&Flavor
id
&str
flavor
&Flavor