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
use super::struct_::GitVersionDescriptor;
use crate::repositories::models::GitVersionType;

impl GitVersionDescriptor {
    pub fn commit(sha: impl Into<String>) -> Self {
        Self {
            version: Some(sha.into()),
            version_type: Some(GitVersionType::Commit),
            version_options: None,
        }
    }
}