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

/// InvalidRequestError : Returned when one of the identifiers or arguments in the request is invalid 
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct InvalidRequestError {
    /// which field or path in the query is erroneous
    #[serde(rename = "field")]
    pub field: String,
    /// a free form message describing the error
    #[serde(rename = "message")]
    pub message: String,
}

impl InvalidRequestError {
    /// Returned when one of the identifiers or arguments in the request is invalid 
    pub fn new(field: String, message: String) -> InvalidRequestError {
        InvalidRequestError {
            field,
            message,
        }
    }
}