async fn as_yaml(svc: &str, conf: &Config, region: &Region) -> Result<String> {
    let mf = shipcat_filebacked::load_manifest(&svc, conf, region).await?;
    if let Ok(m) = mf.verify_region() {
        let yaml = serde_yaml::to_string(&m)?;
        Ok(yaml)
    } else {
        Ok("".to_string())
    }
}
/// YAML serialisation of a manifest.
///
/// Return an empty string if the manifest fails region-validation,
/// otherwise YAML serialise the content. For diff purposes, the content
/// of a manifest not in a region is a blank, rather than being invalid.
YAML serialisation of a manifest.
Return an empty string if the manifest fails region-validation,
otherwise YAML serialise the content. For diff purposes, the content
of a manifest not in a region is a blank, rather than being invalid.
YAML serialisation of a manifest . Return an empty string if the manifest fails region - validation otherwise YAML serialise the content . For diff purposes the content of a manifest not in a region is a blank rather than being invalid .
async fn as_yaml(svc: &str, conf: &Config, region: &Region) -> Result<String> {
    let mf = shipcat_filebacked::load_manifest(&svc, conf, region).await?;
    if let Ok(m) = mf.verify_region() {
        let yaml = serde_yaml::to_string(&m)?;
        Ok(yaml)
    } else {
        Ok("".to_string())
    }
}
async fn as_yaml ( svc : & str , conf : & Config , region : & Region ) -> Result < String > { let mf = shipcat_filebacked :: load_manifest ( & svc , conf , region ) . await ? ; if let Ok ( m ) = mf . verify_region ( ) { let yaml = serde_yaml :: to_string ( & m ) ? ; Ok ( yaml ) } else { Ok ( " " . to_string ( ) ) } }
YAML serialisation of a manifest.
YAML serialisation of a manifest .
svc
&str
conf
&Config
region
&Region
svc
&str
conf
&Config
region
&Region