use serde::{Deserialize, Serialize};

#[derive(Serialize, Deserialize, Debug)]
pub struct Neuron {
    // Allowed Values: neuron
    pub dev: String,
    pub circuit: String,
    pub model: Option<String>,
    // minimum: 1
    pub sn: Option<u32>,
    pub ver2: Option<String>,
    pub board_count: Option<String>,
    // minimum: 0
    pub glob_dev_id: u32,
    pub last_comm: Option<f64>,
    pub uart_circuit: Option<String>,
    pub uart_port: Option<String>,
    pub alias: Option<String>,
}

#[derive(Serialize, Deserialize, Debug)]
pub struct NeuronInput {
    // minimum: 0, maximum: 1
    pub print_log: i32,
}
