Common/UserInterface/DTO/FileFilterDTO.rs
1//! # FileFilterDTO
2//!
3//! Defines the Data Transfer Object for a single file filter in a native file
4//! dialog.
5
6use serde::{Deserialize, Serialize};
7
8/// A serializable struct that represents a single selectable filter in a file
9/// dialog's "files of type" dropdown.
10#[derive(Serialize, Deserialize, Debug, Clone, Default)]
11#[serde(rename_all = "PascalCase")]
12pub struct FileFilterDTO {
13 /// The human-readable name of the filter (e.g., "Image Files").
14 pub Name:String,
15
16 /// A list of file extensions associated with this filter (e.g., `["jpg",
17
18 /// "png"]`).
19 pub ExtensionList:Vec<String>,
20}