use serde::{Deserialize, Serialize}; /*
                                      * Cloud SQL Admin API
                                      *
                                      * API for Cloud SQL database instance management
                                      *
                                      * The version of the OpenAPI document: v1
                                      *
                                      * Generated by: https://openapi-generator.tech
                                      */

/// OperationError : Database instance operation error.

#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct OperationError {
    /// Identifies the specific error that occurred.
    #[serde(rename = "code", skip_serializing_if = "Option::is_none")]
    pub code: Option<String>,
    /// This is always `sql#operationError`.
    #[serde(rename = "kind", skip_serializing_if = "Option::is_none")]
    pub kind: Option<String>,
    /// Additional information about the error encountered.
    #[serde(rename = "message", skip_serializing_if = "Option::is_none")]
    pub message: Option<String>,
}

impl OperationError {
    /// Database instance operation error.
    pub fn new() -> OperationError {
        OperationError {
            code: None,
            kind: None,
            message: None,
        }
    }
}
