pub fn trim_hosted_zone(zone: &mut Option<String>) {
    const PREFIXES: &[&str; 2] = &["/hostedzone/", "hostedzone/"];

    for prefix in PREFIXES {
        if let Some(core_zone) = zone.as_deref().unwrap_or_default().strip_prefix(prefix) {
            *zone = Some(core_zone.to_string());
            return;
        }
    }
}
/// Strip the /hostedzone/ prefix from zone-id
Strip the /hostedzone/ prefix from zone-id
Strip the / hostedzone / prefix from zone - id
pub fn trim_hosted_zone(zone: &mut Option<String>) {
    const PREFIXES: &[&str; 2] = &["/hostedzone/", "hostedzone/"];
    for prefix in PREFIXES {
        if let Some(core_zone) = zone.as_deref().unwrap_or_default().strip_prefix(prefix) {
            *zone = Some(core_zone.to_string());
            return;
        }
    }
}
pub fn trim_hosted_zone ( zone : & mut Option < String > ) { const PREFIXES : & [ & str ; 2 ] = & [ " " , " " ] ; for prefix in PREFIXES { if let Some ( core_zone ) = zone . as_deref ( ) . unwrap_or_default ( ) . strip_prefix ( prefix ) { * zone = Some ( core_zone . to_string ( ) ) ; return ; } } }
Strip the /hostedzone/ prefix from zone-id
Strip the / hostedzone / prefix from zone - id
zone
&mut Option<String>
zone
&mut Option<String>