bioscopelib/dto/
urequest_request.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//!
//! Request from client to change or add `Urequest`
//!
use serde::{Deserialize, Serialize};
use serde_json::Value;
use uuid::Uuid;

#[derive(Serialize, Deserialize, Debug, Clone)]
#[serde(rename_all = "camelCase")]
pub struct UrequestRequest {
    /// Urequest ID - can be generated if urequest is new
    #[serde(skip_serializing_if = "Option::is_none")]
    pub id: Option<Uuid>,

    /// Id of the user who sent the request to microscope
    pub user: Uuid,

    /// The command that was sent to the microscope
    pub command: Value,

    /// ID of the microscope to which the command was sent
    pub microscope: Uuid,
}