/*
 * Orvanta API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.2.0
 * Contact: contact@orvanta.cloud
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetCompletedJobTiming200Response {
    #[serde(rename = "created_at")]
    pub created_at: String,
    #[serde(rename = "started_at", skip_serializing_if = "Option::is_none")]
    pub started_at: Option<String>,
    #[serde(rename = "duration_ms", skip_serializing_if = "Option::is_none")]
    pub duration_ms: Option<i32>,
}

impl GetCompletedJobTiming200Response {
    pub fn new(created_at: String) -> GetCompletedJobTiming200Response {
        GetCompletedJobTiming200Response {
            created_at,
            started_at: None,
            duration_ms: None,
        }
    }
}

