/* Code generated by Azure.Iot.Operations.ProtocolCompilerLib v1.0.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::config_error::ConfigError;
use super::message_schema_reference::MessageSchemaReference;

#[derive(Serialize, Deserialize, Debug, Clone, Builder)]
pub struct AssetDatasetEventStreamStatus {
    /// The last error that occurred while processing the dataset/event/stream.
    #[serde(skip_serializing_if = "Option::is_none")]
    #[builder(default = "None")]
    pub error: Option<ConfigError>,

    /// The message schema reference object.
    #[serde(rename = "messageSchemaReference")]
    #[serde(skip_serializing_if = "Option::is_none")]
    #[builder(default = "None")]
    pub message_schema_reference: Option<MessageSchemaReference>,

    /// The name of the dataset/event/stream. Must be unique within the status.datasets[i]/events[i]/streams[i] array. This name is used to correlate between the spec and status dataset/event/stream information.
    pub name: String,
}
