pub async fn versions(conf: &Config, region: &Region) -> Result<BTreeMap<String, Version>> {
    let mut output = BTreeMap::new();
    for mf in shipcat_filebacked::available(conf, region).await? {
        if let Some(v) = mf.version {
            if let Ok(sv) = Version::parse(&v) {
                output.insert(mf.base.name, sv);
            }
        }
    }
    println!("{}", serde_json::to_string_pretty(&output)?);
    Ok(output)
}
/// Find the hardcoded versions of services in a region
///
/// Services without a hardcoded version are not returned.
Find the hardcoded versions of services in a region
Services without a hardcoded version are not returned.
Find the hardcoded versions of services in a region Services without a hardcoded version are not returned .
pub async fn versions(conf: &Config, region: &Region) -> Result<BTreeMap<String, Version>> {
    let mut output = BTreeMap::new();
    for mf in shipcat_filebacked::available(conf, region).await? {
        if let Some(v) = mf.version {
            if let Ok(sv) = Version::parse(&v) {
                output.insert(mf.base.name, sv);
            }
        }
    }
    println!("{}", serde_json::to_string_pretty(&output)?);
    Ok(output)
}
pub async fn versions ( conf : & Config , region : & Region ) -> Result < BTreeMap < String , Version > > { let mut output = BTreeMap :: new ( ) ; for mf in shipcat_filebacked :: available ( conf , region ) . await ? { if let Some ( v ) = mf . version { if let Ok ( sv ) = Version :: parse ( & v ) { output . insert ( mf . base . name , sv ) ; } } } println ! ( " " serde_json to_string_pretty ( output ) ) ; Ok ( output ) }
Find the hardcoded versions of services in a region
Services without a hardcoded version are not returned.
Find the hardcoded versions of services in a region Services without a hardcoded version are not returned .
conf
&Config
region
&Region
conf
&Config
region
&Region