Common/SourceControlManagement/DTO/SourceControlUpdateDTO.rs
1//! # SourceControlUpdateDTO
2//!
3//! Defines a generic DTO for updating properties of an SourceControlManagement
4//! provider.
5
6use serde::{Deserialize, Serialize};
7
8/// A serializable struct used to send updates for a source control provider's
9/// top-level properties, such as the commit message in the input box or the
10/// badge count.
11#[derive(Serialize, Deserialize, Debug, Clone)]
12#[serde(rename_all = "PascalCase")]
13pub struct SourceControlUpdateDTO {
14 /// The handle of the provider to update.
15 pub ProviderHandle:u32,
16
17 /// The new value for the commit message input box.
18 #[serde(skip_serializing_if = "Option::is_none")]
19 pub InputBoxValue:Option<String>,
20
21 /// The new count to display as a badge on the SourceControlManagement icon.
22 #[serde(skip_serializing_if = "Option::is_none")]
23 pub Count:Option<u32>,
24 // This could be expanded to include other updatable properties.
25}