Skip to main content

orvanta_api/models/
process_activity_error.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.5.1
7 * Contact: contact@orvanta.cloud
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// ProcessActivityError : error detail attached to a failed ProcessActivityStatus
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ProcessActivityError {
17    #[serde(rename = "message")]
18    pub message: String,
19    #[serde(rename = "child_job_id", skip_serializing_if = "Option::is_none")]
20    pub child_job_id: Option<uuid::Uuid>,
21}
22
23impl ProcessActivityError {
24    /// error detail attached to a failed ProcessActivityStatus
25    pub fn new(message: String) -> ProcessActivityError {
26        ProcessActivityError {
27            message,
28            child_job_id: None,
29        }
30    }
31}
32