pub struct Server {
pub id: String,
pub name: String,
pub base_url: String,
pub country: Option<String>,
pub sponsor: Option<String>,
pub port: Option<u16>,
pub dl_path: String,
pub ul_path: String,
pub ping_path: String,
}Expand description
Target server for a link measurement.
For LibreSpeed, base_url is the instance root (for example https://host/backend/).
Path fields (dl_path, ul_path, ping_path) are joined relative to that base.
For iperf3, base_url holds the host name or address and port holds the
port (default 5201 when None).
Fields§
§id: StringList id or host-derived identifier.
name: StringHuman-readable label (shown in CLI output and Prometheus labels).
base_url: StringLibreSpeed base URL or iperf3 host, depending on the backend.
country: Option<String>Country code from a server list, when present.
sponsor: Option<String>Sponsor or provider name from a server list, when present.
port: Option<u16>iperf3 port (None for LibreSpeed servers).
dl_path: StringRelative download path (default LibreSpeed: backend/garbage.php).
ul_path: StringRelative upload path (default: backend/empty.php).
ping_path: StringRelative ping path (default: backend/empty.php).