azure-devops 0.1.0

Idiomatic Rust client for Azure DevOps REST APIs
Documentation
use chrono::{DateTime, Utc};
use serde::{Deserialize, Serialize};
use uuid::Uuid;

/// A full Azure DevOps team project.
///
/// Returned by [`ProjectsClient::get()`](crate::projects::ProjectsClient::get).
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Project {
    /// The unique identifier of the project.
    pub id: Uuid,
    /// The display name of the project.
    pub name: String,
    /// Optional description of the project.
    #[serde(default)]
    pub description: Option<String>,
    /// The REST API URL of this project.
    #[serde(default)]
    pub url: Option<String>,
    /// The current lifecycle state (e.g., `"wellFormed"`, `"deleting"`).
    #[serde(default)]
    pub state: Option<String>,
    /// The revision number (incremented on each update).
    #[serde(default)]
    pub revision: i64,
    /// Visibility: `"private"` or `"public"`.
    #[serde(default)]
    pub visibility: Option<String>,
    /// When the project was last modified.
    #[serde(default)]
    pub last_update_time: Option<DateTime<Utc>>,
}