pub fn find_owning_cluster(&self, region: &Region) -> Option<Cluster> {
        for c in self.clusters.values() {
            if c.regions.iter().any(|r| r == &region.name) {
                if c.name != region.cluster {
                    warn!("Inactive cluster: {} for {}", c.name, region.name);
                } else {
                    return Some(c.clone());
                }
            }
        }
        None
    }
/// Find the Cluster struct that owns this Region
Find the Cluster struct that owns this Region
Find the Cluster struct that owns this Region
pub fn find_owning_cluster(&self, region: &Region) -> Option<Cluster> {
        for c in self.clusters.values() {
            if c.regions.iter().any(|r| r == &region.name) {
                if c.name != region.cluster {
                    warn!("Inactive cluster: {} for {}", c.name, region.name);
                } else {
                    return Some(c.clone());
                }
            }
        }
        None
    }
pub fn find_owning_cluster ( & self , region : & Region ) -> Option < Cluster > { for c in self . clusters . values ( ) { if c . regions . iter ( ) . any ( | r | r == & region . name ) { if c . name != region . cluster { warn ! ( " " c name region name ) ; } else { return Some ( c . clone ( ) ) ; } } } None }
Find the Cluster struct that owns this Region
Find the Cluster struct that owns this Region
&self
region
&Region
&self
region
&Region