fn network_host_to_string(network_host: &schema::onvif::NetworkHost) -> String {
    let mut display = String::new();
    if let Some(dns) = &network_host.dn_sname {
        display.push_str(&format!("{} ", dns));
    }
    if let Some(ipv4) = &network_host.i_pv_4_address {
        display.push_str(&format!("{} ", ipv4));
    }
    if let Some(ipv6) = &network_host.i_pv_6_address {
        display.push_str(&format!("{} ", ipv6));
    }
    return display;
}
/// Convert an ONVIF Network Host to a display string.
Convert an ONVIF Network Host to a display string.
Convert an ONVIF Network Host to a display string .
fn network_host_to_string(network_host: &schema::onvif::NetworkHost) -> String {
    let mut display = String::new();
    if let Some(dns) = &network_host.dn_sname {
        display.push_str(&format!("{} ", dns));
    }
    if let Some(ipv4) = &network_host.i_pv_4_address {
        display.push_str(&format!("{} ", ipv4));
    }
    if let Some(ipv6) = &network_host.i_pv_6_address {
        display.push_str(&format!("{} ", ipv6));
    }
    return display;
}
fn network_host_to_string ( network_host : & schema :: onvif :: NetworkHost ) -> String { let mut display = String :: new ( ) ; if let Some ( dns ) = & network_host . dn_sname { display . push_str ( & format ! ( " " dns ) ) ; } if let Some ( ipv4 ) = & network_host . i_pv_4_address { display . push_str ( & format ! ( " " ipv4 ) ) ; } if let Some ( ipv6 ) = & network_host . i_pv_6_address { display . push_str ( & format ! ( " " ipv6 ) ) ; } return display ; }
Convert an ONVIF Network Host to a display string.
Convert an ONVIF Network Host to a display string .
network_host
&schema::onvif::NetworkHost
network_host
&schema::onvif::NetworkHost