/* 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::akri_service_error::AkriServiceError;
use super::discovered_asset_response_schema::DiscoveredAssetResponseSchema;

#[derive(Serialize, Deserialize, Debug, Clone, Builder)]
pub struct CreateOrUpdateDiscoveredAssetResponseSchema {
    /// Error details, if the discovered asset creation or update failed.
    #[serde(rename = "createOrUpdateDiscoveredAssetError")]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[builder(default = "None")]
    pub create_or_update_discovered_asset_error: Option<AkriServiceError>,

    /// The discovered asset response.
    #[serde(rename = "discoveredAssetResponse")]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[builder(default = "None")]
    pub discovered_asset_response: Option<DiscoveredAssetResponseSchema>,
}
