bioscopelib/jsonb/
configuration.rs

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

#[derive(Serialize, Deserialize, Debug, Clone, PartialEq)]
#[serde(rename_all = "camelCase")]
pub struct Configuration {
    pub camera_width: u32,
    pub camera_height: u32,
    pub camera_format: String,
    pub camera_system_index: u32,
    pub stepper_port_path: String,
    pub stepper_baud_rate: u32,
    pub stepper_timeout: u32,
    pub stepper_time_waiting: u32,
    pub stepper_time_pooling: u32,
    pub stepper_delay_before_flash_report: u32,
}