tauri_plugin_android_fs/models/
file_picker.rs

1use serde::{Deserialize, Serialize};
2
3
4/// Filters for VisualMediaPicker.
5#[derive(Debug, Clone, Copy, Hash, PartialEq, Eq, Deserialize, Serialize)]
6#[non_exhaustive]
7pub enum VisualMediaTarget<'a> {
8
9    /// Allow only images to be selected.  
10    ImageOnly,
11
12    /// Allow only videos to be selected.  
13    VideoOnly,
14
15    /// Allow only images and videos to be selected.  
16    ImageAndVideo,
17
18    /// Allow only images or videos of specified single Mime type to be selected.  
19    ImageOrVideo {
20        mime_type: &'a str
21    }
22}