securitylib/dto/
gate_request.rs

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

#[derive(Serialize, Deserialize, Debug, Clone)]
#[serde(rename_all = "camelCase")]
pub struct GateRequest {
    pub id: Option<Uuid>,
    pub name: String,
    pub location: Option<serde_json::Value>,
    pub gate_type: String,
    pub model: Option<String>,
    pub details: Option<serde_json::Value>,
    pub camera: Option<serde_json::Value>,
    pub detector: Option<serde_json::Value>,
    pub resource_id: Uuid,
}