usestd::net::IpAddr;useserde::Deserialize;/// Response returned from the database containing the IP's of its nodes.
#[derive(Debug, Deserialize)]#[serde(rename_all ="camelCase")]pubstructHosts{nodes:Vec<IpAddr>,
}implFrom<Hosts>forVec<IpAddr>{fnfrom(value: Hosts)->Self{
value.nodes
}}