thghosting_data_centers/
lib.rs

1use std::net::Ipv4Addr;
2
3pub mod html;
4
5pub use html::{parse_html, HtmlEndpoint};
6
7//
8#[derive(Debug, Clone)]
9pub struct DataCenter {
10    pub id: String,
11    pub city: String,
12    pub available_services: Vec<AvailableService>,
13    pub standard_bare_metal_bandwidth: Option<String>,
14    pub ping: Option<Ipv4Addr>,
15    pub test_download: Option<String>,
16    pub url: Option<String>,
17}
18
19#[derive(Debug, Copy, Clone, PartialEq, Eq)]
20pub enum AvailableService {
21    BareMetalServers,
22    VirtualServers,
23    PrivateCloud,
24}