dji_log_parser/frame/
recover.rs

1use serde::Serialize;
2#[cfg(target_arch = "wasm32")]
3use tsify_next::Tsify;
4
5use crate::layout::details::Platform;
6
7#[derive(Serialize, Debug, Default, Clone)]
8#[serde(rename_all = "camelCase")]
9#[cfg_attr(target_arch = "wasm32", derive(Tsify))]
10pub struct FrameRecover {
11    /// The platform of the app used (e.g., iOS, Android)
12    #[cfg_attr(target_arch = "wasm32", tsify(optional))]
13    pub app_platform: Option<Platform>,
14    /// Version of the app used
15    pub app_version: String,
16    /// Name of the aircraft
17    pub aircraft_name: String,
18    /// Serial number of the aircraft
19    pub aircraft_sn: String,
20    // Serial number of the camera
21    pub camera_sn: String,
22    /// Serial number of the remote control
23    pub rc_sn: String,
24    /// Serial number of the battery
25    pub battery_sn: String,
26}