azure_devops/projects/models/structs/project.rs
1use chrono::{DateTime, Utc};
2use serde::{Deserialize, Serialize};
3use uuid::Uuid;
4
5/// A full Azure DevOps team project.
6///
7/// Returned by [`ProjectsClient::get()`](crate::projects::ProjectsClient::get).
8#[derive(Debug, Clone, Serialize, Deserialize)]
9#[serde(rename_all = "camelCase")]
10pub struct Project {
11 /// The unique identifier of the project.
12 pub id: Uuid,
13 /// The display name of the project.
14 pub name: String,
15 /// Optional description of the project.
16 #[serde(default)]
17 pub description: Option<String>,
18 /// The REST API URL of this project.
19 #[serde(default)]
20 pub url: Option<String>,
21 /// The current lifecycle state (e.g., `"wellFormed"`, `"deleting"`).
22 #[serde(default)]
23 pub state: Option<String>,
24 /// The revision number (incremented on each update).
25 #[serde(default)]
26 pub revision: i64,
27 /// Visibility: `"private"` or `"public"`.
28 #[serde(default)]
29 pub visibility: Option<String>,
30 /// When the project was last modified.
31 #[serde(default)]
32 pub last_update_time: Option<DateTime<Utc>>,
33}