use serde::{Deserialize, Serialize}; /*
                                      * Service Control API
                                      *
                                      * Provides admission control and telemetry reporting for services integrated with Service Infrastructure.
                                      *
                                      * The version of the OpenAPI document: v1
                                      *
                                      * Generated by: https://openapi-generator.tech
                                      */

use crate::google_rest_apis::servicecontrol_v1::models;

/// ReportError : Represents the processing error of one Operation in the request.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ReportError {
    /// The Operation.operation_id value from the request.
    #[serde(rename = "operationId", skip_serializing_if = "Option::is_none")]
    pub operation_id: Option<String>,
    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
    pub status: Option<Box<models::Status>>,
}

impl ReportError {
    /// Represents the processing error of one Operation in the request.
    pub fn new() -> ReportError {
        ReportError {
            operation_id: None,
            status: None,
        }
    }
}
