autogen-stedi 0.3.2

Auto-generated, strongly-typed Rust client for the Stedi APIs
Documentation
/*
 * Stedi Healthcare
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 2024-04-01
 * Contact: healthcare@stedi.com
 * Generated by: https://openapi-generator.tech
 */

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

/// RequestChangedExceptionResponseContent : Exception returned when a request uses an idempotency key that was previously used with different request parameters.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct RequestChangedExceptionResponseContent {
    /// Unique error code identifying the specific type of error.
    #[serde(rename = "code", skip_serializing_if = "Option::is_none")]
    pub code: Option<String>,
    /// Human readable error message explaining why the request was rejected.
    #[serde(rename = "message")]
    pub message: String,
}

impl RequestChangedExceptionResponseContent {
    /// Exception returned when a request uses an idempotency key that was previously used with different request parameters.
    pub fn new(message: String) -> RequestChangedExceptionResponseContent {
        RequestChangedExceptionResponseContent {
            code: None,
            message,
        }
    }
}