bioscopelib/dto/urequest_response.rs
//!
//! `Urequest` response to client
//!
use chrono::NaiveDateTime;
use serde::{Deserialize, Serialize};
use serde_json::Value;
use uuid::Uuid;
#[derive(Serialize, Deserialize, Debug, Clone)]
#[serde(rename_all = "camelCase")]
pub struct UrequestResponse {
/// Urequest ID
pub id: Uuid,
/// Last update date (date, when command was sent to microscope)
#[serde(skip_serializing_if = "Option::is_none")]
pub updt: Option<NaiveDateTime>,
/// 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,
}