Skip to main content

CommonLibrary/SourceControlManagement/DTO/
SourceControlGroupUpdateDTO.rs

1//! # SourceControlGroupUpdateDTO
2//!
3//! Defines the DTO for updating the properties of an SourceControlManagement
4//! resource group.
5
6use serde::{Deserialize, Serialize};
7
8/// A serializable struct used to update the properties of a source control
9/// group, such as its label or visibility, without affecting its list of
10/// resources.
11#[derive(Serialize, Deserialize, Debug, Clone)]
12#[serde(rename_all = "camelCase")]
13pub struct SourceControlGroupUpdateDTO {
14	/// The handle of the provider that owns the group. Optional: callers that
15	/// pass the handle as a positional argument may omit this field.
16	#[serde(skip_serializing_if = "Option::is_none")]
17	pub ProviderHandle:Option<u32>,
18
19	/// The unique identifier for the group within its provider.
20	#[serde(rename = "groupId")]
21	pub GroupID:String,
22
23	/// The new human-readable label for the group.
24	pub Label:String,
25	// Other properties like `HideWhenEmpty` could be added here.
26}