Mountain/ApplicationState/DTO/
WorkSpaceFolderStateDTO.rs

1//! # WorkSpaceFolderStateDTO
2//!
3//! Defines the Data Transfer Object for storing the state of a single
4//! workspace folder.
5
6#![allow(non_snake_case, non_camel_case_types)]
7
8use serde::{Deserialize, Serialize};
9use url::Url;
10
11use crate::ApplicationState::Internal::URLSerializationHelper;
12
13/// Represents a single folder that is part of the current workspace.
14#[derive(Serialize, Deserialize, Clone, Debug)]
15#[serde(rename_all = "PascalCase")]
16pub struct WorkSpaceFolderStateDTO {
17	/// The URI of the folder.
18	#[serde(with = "URLSerializationHelper")]
19	pub URI:Url,
20
21	/// The display name of the folder.
22	pub Name:String,
23
24	/// The zero-based index of the folder in the workspace.
25	pub Index:usize,
26}