Common/SourceControlManagement/DTO/SourceControlInputBoxDTO.rs
1//! # SourceControlInputBoxDTO
2//!
3//! Defines the DTO for the SourceControlManagement input box (commit message
4//! box).
5
6use serde::{Deserialize, Serialize};
7
8/// A serializable struct representing the state of the commit message input box
9/// associated with a source control provider.
10#[derive(Serialize, Deserialize, Debug, Clone)]
11#[serde(rename_all = "PascalCase")]
12pub struct SourceControlInputBoxDTO {
13 /// The current text content of the input box.
14 pub Value:String,
15
16 /// Placeholder text to show when the input box is empty.
17 #[serde(skip_serializing_if = "Option::is_none")]
18 pub Placeholder:Option<String>,
19
20 /// Whether the input box is currently visible.
21 #[serde(default)]
22 pub Visible:bool,
23}