windmill_api/models/
get_git_commit_hash_200_response.rs

1/*
2 * Windmill API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 1.575.2
7 * Contact: contact@windmill.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct GetGitCommitHash200Response {
16    /// Latest commit hash from git ls-remote
17    #[serde(rename = "commit_hash")]
18    pub commit_hash: String,
19}
20
21impl GetGitCommitHash200Response {
22    pub fn new(commit_hash: String) -> GetGitCommitHash200Response {
23        GetGitCommitHash200Response {
24            commit_hash,
25        }
26    }
27}
28