bioscopelib/dto/urequest_request.rs
//!
//! 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,
}