dji_log_parser/frame/
camera.rs

1use serde::Serialize;
2#[cfg(target_arch = "wasm32")]
3use tsify_next::Tsify;
4
5use crate::record::camera::SDCardState;
6
7#[derive(Serialize, Debug, Default, Clone)]
8#[serde(rename_all = "camelCase")]
9#[cfg_attr(target_arch = "wasm32", derive(Tsify))]
10pub struct FrameCamera {
11    /// Indicates if the camera is in photo mode
12    pub is_photo: bool,
13    /// Indicates if the camera is in video mode
14    pub is_video: bool,
15    /// Indicates if an SD card is inserted
16    pub sd_card_is_inserted: bool,
17    /// Current state of the SD card
18    #[cfg_attr(target_arch = "wasm32", tsify(optional))]
19    pub sd_card_state: Option<SDCardState>,
20}