Common/TreeView/DTO/TreeViewOptionsDTO.rs
1//! # TreeViewOptionsDTO
2//!
3//! Defines the Data Transfer Object for a tree view's configuration options.
4
5#![allow(non_snake_case, non_camel_case_types)]
6
7use serde::{Deserialize, Serialize};
8
9/// A struct that holds the configuration options for a tree view instance
10/// registered by an extension.
11#[derive(Serialize, Deserialize, Debug, Clone)]
12#[serde(rename_all = "PascalCase")]
13pub struct TreeViewOptionsDTO {
14 #[serde(default)]
15 pub CanSelectMany:bool,
16
17 #[serde(default)]
18 pub HasHandleDrag:bool,
19
20 #[serde(default)]
21 pub HasHandleDrop:bool,
22}