fn ready_str(pod: &Pod) -> String {
    match pod.status.container_statuses {
        Some(ref statuses) => {
            let mut count = 0;
            let mut ready = 0;
            for ref stat in statuses.iter() {
                count += 1;
                if stat.ready {
                    ready += 1;
                }
            }
            format!("{}/{}", ready, count)
        }
        None => "unknown".to_owned(),
    }
}
// get the number of ready containers and total containers
get the number of ready containers and total containers
get the number of ready containers and total containers
fn ready_str(pod: &Pod) -> String {
    match pod.status.container_statuses {
        Some(ref statuses) => {
            let mut count = 0;
            let mut ready = 0;
            for ref stat in statuses.iter() {
                count += 1;
                if stat.ready {
                    ready += 1;
                }
            }
            format!("{}/{}", ready, count)
        }
        None => "unknown".to_owned(),
    }
}
fn ready_str ( pod : & Pod ) -> String { match pod . status . container_statuses { Some ( ref statuses ) => { let mut count = 0 ; let mut ready = 0 ; for ref stat in statuses . iter ( ) { count += 1 ; if stat . ready { ready += 1 ; } } format ! ( " " ready count ) } None => " " . to_owned ( ) , } }
get the number of ready containers and total containers
get the number of ready containers and total containers
pod
&Pod
pod
&Pod