antimatter_api 2.0.13

Interact with the Antimatter Cloud API
Documentation
/*
 * Antimatter Public API
 *
 * Interact with the Antimatter Cloud API
 *
 * The version of the OpenAPI document: 2.0.13
 * Contact: support@antimatter.io
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// PreconditionFailedError : Returned when the server is unable to process the request due to a failed precondition. 
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct PreconditionFailedError {
    /// which resource type failed precondition.
    #[serde(rename = "resourceType")]
    pub resource_type: String,
    /// identifier for the resource that the precondition failed on
    #[serde(rename = "identifier")]
    pub identifier: String,
    /// a free form message describing the error
    #[serde(rename = "message")]
    pub message: String,
}

impl PreconditionFailedError {
    /// Returned when the server is unable to process the request due to a failed precondition. 
    pub fn new(resource_type: String, identifier: String, message: String) -> PreconditionFailedError {
        PreconditionFailedError {
            resource_type,
            identifier,
            message,
        }
    }
}