tauri-plugin-native-camera 0.1.0

A Tauri plugin to capture photos using the device's native camera app
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright 2026 Kushal Das
// SPDX-License-Identifier: MIT

use serde::{Deserialize, Serialize};

/// Result of a successful photo capture.
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct CaptureResult {
    /// Base64-encoded JPEG image data.
    pub image_data: String,
    /// Width of the captured image in pixels.
    pub width: u32,
    /// Height of the captured image in pixels.
    pub height: u32,
}