fn phase_str(pod: &Pod) -> String {
    if let Some(_) = pod.metadata.deletion_timestamp {
        // Was deleted
        "Terminating".to_owned()
    } else if has_waiting(pod) {
        "ContainerCreating".to_owned()
    } else {
        pod.status.phase.clone()
    }
}
// Figure out the right thing to print for the phase of the given pod
Figure out the right thing to print for the phase of the given pod
Figure out the right thing to print for the phase of the given pod
fn phase_str(pod: &Pod) -> String {
    if let Some(_) = pod.metadata.deletion_timestamp {
        // Was deleted
        "Terminating".to_owned()
    } else if has_waiting(pod) {
        "ContainerCreating".to_owned()
    } else {
        pod.status.phase.clone()
    }
}
fn phase_str ( pod : & Pod ) -> String { if let Some ( _ ) = pod . metadata . deletion_timestamp { // Was deleted " " . to_owned ( ) } else if has_waiting ( pod ) { " " . to_owned ( ) } else { pod . status . phase . clone ( ) } }
Figure out the right thing to print for the phase of the given pod
Figure out the right thing to print for the phase of the given pod
pod
&Pod
pod
&Pod