Skip to main content

windmill_api/models/
auto_pull_status.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.762.0
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 AutoPullStatus {
16    #[serde(rename = "synced_sha", skip_serializing_if = "Option::is_none")]
17    pub synced_sha: Option<String>,
18    #[serde(rename = "at")]
19    pub at: i64,
20    #[serde(rename = "job_id", skip_serializing_if = "Option::is_none")]
21    pub job_id: Option<uuid::Uuid>,
22    #[serde(rename = "success")]
23    pub success: bool,
24    #[serde(rename = "error", skip_serializing_if = "Option::is_none")]
25    pub error: Option<String>,
26}
27
28impl AutoPullStatus {
29    pub fn new(at: i64, success: bool) -> AutoPullStatus {
30        AutoPullStatus {
31            synced_sha: None,
32            at,
33            job_id: None,
34            success,
35            error: None,
36        }
37    }
38}
39