1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
use std::net::Ipv4Addr;

pub mod html;

pub use html::{parse_html, HtmlEndpoint};

//
#[derive(Debug, Clone)]
pub struct DataCenter {
    pub id: String,
    pub city: String,
    pub available_services: Vec<AvailableService>,
    pub standard_bare_metal_bandwidth: Option<String>,
    pub ping: Option<Ipv4Addr>,
    pub test_download: Option<String>,
    pub url: Option<String>,
}

#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub enum AvailableService {
    BareMetalServers,
    VirtualServers,
    PrivateCloud,
}