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};

/// ConflictError : Returned when attempting to delete a resource that is still in use by  other resources 
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ConflictError {
    /// which resource type cannot be deleted
    #[serde(rename = "resourceType")]
    pub resource_type: String,
    /// the identifier for the resource we cannot delete
    #[serde(rename = "identifier")]
    pub identifier: String,
    /// a free form message describing one or more of the resources that depend upon the resource, preventing it's deletion 
    #[serde(rename = "message")]
    pub message: String,
}

impl ConflictError {
    /// Returned when attempting to delete a resource that is still in use by  other resources 
    pub fn new(resource_type: String, identifier: String, message: String) -> ConflictError {
        ConflictError {
            resource_type,
            identifier,
            message,
        }
    }
}