swh 0.2.1

A CLI for Switch Hosts
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use serde::{Deserialize, Serialize};

pub const SWH_HTTP_API_PORT: u16 = 50761;

#[derive(Debug, Deserialize, Serialize)]
pub struct SwhResponse {
    pub success: bool,
    pub data: Vec<HostsMeta>,
}

#[derive(Debug, Deserialize, Serialize)]
pub struct HostsMeta {
    pub id: String,
    pub title: Option<String>,
    pub on: Option<bool>,
}