orvanta_api/models/process_history_entry.rs
1/*
2 * Orvanta 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.7.1
7 * Contact: contact@orvanta.cloud
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// ProcessHistoryEntry : one per-element transition record. Not currently populated by the engine -- always an empty array today (see ProcessInstanceStatus).
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ProcessHistoryEntry {
17 #[serde(rename = "element_id")]
18 pub element_id: String,
19 #[serde(rename = "transition")]
20 pub transition: String,
21 #[serde(rename = "at")]
22 pub at: String,
23}
24
25impl ProcessHistoryEntry {
26 /// one per-element transition record. Not currently populated by the engine -- always an empty array today (see ProcessInstanceStatus).
27 pub fn new(element_id: String, transition: String, at: String) -> ProcessHistoryEntry {
28 ProcessHistoryEntry {
29 element_id,
30 transition,
31 at,
32 }
33 }
34}
35