/* Code generated by Azure.Iot.Operations.ProtocolCompilerLib v0.10.0.0; DO NOT EDIT. */
#![allow(unused_imports)]

use std::collections::HashMap;

use chrono::{DateTime, Utc};
use derive_builder::Builder;
use iso8601_duration::Duration;
use serde::{Deserialize, Serialize};
use uuid::Uuid;

use super::super::common_types::{b64::Bytes, date_only::Date, decimal::Decimal, time_only::Time};
use super::details_schema_element_schema::DetailsSchemaElementSchema;

#[derive(Serialize, Deserialize, Debug, Clone, Builder)]
pub struct ConfigError {
    /// Error code for classification of errors (ex: '400', '404', '500', etc.).
    #[serde(skip_serializing_if = "Option::is_none")]
    #[builder(default = "None")]
    pub code: Option<String>,

    /// Array of error details that describe the status of each error.
    #[serde(skip_serializing_if = "Option::is_none")]
    #[builder(default = "None")]
    pub details: Option<Vec<DetailsSchemaElementSchema>>,

    /// Human readable helpful error message to provide additional context for error (ex: “capability Id ''foo'' does not exist”).
    #[serde(skip_serializing_if = "Option::is_none")]
    #[builder(default = "None")]
    pub message: Option<String>,
}
