azure-devops 0.1.0

Idiomatic Rust client for Azure DevOps REST APIs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use chrono::{DateTime, Utc};
use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(rename_all = "camelCase", default)]
pub struct RetentionLease {
    pub lease_id: Option<i64>,
    pub owner_id: Option<String>,
    pub definition_id: Option<i64>,
    pub run_id: Option<i64>,
    pub protect_pipeline: bool,
    pub created_on: Option<DateTime<Utc>>,
    pub valid_until: Option<DateTime<Utc>>,
}