Skip to main content

windmill_api/models/
ci_test_result.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.684.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 CiTestResult {
16    #[serde(rename = "test_script_path")]
17    pub test_script_path: String,
18    #[serde(rename = "job_id", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
19    pub job_id: Option<Option<uuid::Uuid>>,
20    #[serde(rename = "status", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
21    pub status: Option<Option<String>>,
22    #[serde(rename = "started_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
23    pub started_at: Option<Option<String>>,
24}
25
26impl CiTestResult {
27    pub fn new(test_script_path: String) -> CiTestResult {
28        CiTestResult {
29            test_script_path,
30            job_id: None,
31            status: None,
32            started_at: None,
33        }
34    }
35}
36