dji-log-parser 0.5.7

Library for parsing DJI txt logs
Documentation
use serde::Serialize;
#[cfg(target_arch = "wasm32")]
use tsify_next::Tsify;

use crate::layout::details::Platform;

#[derive(Serialize, Debug, Default, Clone)]
#[serde(rename_all = "camelCase")]
#[cfg_attr(target_arch = "wasm32", derive(Tsify))]
pub struct FrameRecover {
    /// The platform of the app used (e.g., iOS, Android)
    #[cfg_attr(target_arch = "wasm32", tsify(optional))]
    pub app_platform: Option<Platform>,
    /// Version of the app used
    pub app_version: String,
    /// Name of the aircraft
    pub aircraft_name: String,
    /// Serial number of the aircraft
    pub aircraft_sn: String,
    // Serial number of the camera
    pub camera_sn: String,
    /// Serial number of the remote control
    pub rc_sn: String,
    /// Serial number of the battery
    pub battery_sn: String,
}