Common/SourceControlManagement/DTO/
SourceControlManagementResourceDTO.rs

1//! # SourceControlManagementResourceDTO
2//!
3//! Defines the DTO for a single resource under source control (e.g., a changed
4//! file).
5
6use serde::{Deserialize, Serialize};
7use serde_json::Value;
8
9/// A serializable struct representing a single item within an
10/// SourceControlManagement group, such as a file that has been modified, added,
11/// or deleted.
12#[derive(Serialize, Deserialize, Debug, Clone)]
13#[serde(rename_all = "PascalCase")]
14pub struct SourceControlManagementResourceDTO {
15	pub ProviderHandle:u32,
16
17	pub GroupIdentifier:String,
18
19	/// The URI of the resource. Serialized `UriComponents`.
20	pub ResourceURI:Value,
21
22	/// A DTO for decorations like color, tooltip, and file status icons.
23	/// Serialized `SourceControlResourceDecorations`.
24	pub Decorations:Value,
25}