/*
* Core
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2023-08-01
* Contact: core@stedi.com
* Generated by: https://openapi-generator.tech
*/
use crate::core::models;
use serde::{Deserialize, Serialize};
/// ThrottlingExceptionResponseContent : The server response when usage plan or account-level throttling limits exceeded.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ThrottlingExceptionResponseContent {
#[serde(rename = "message")]
pub message: String,
#[serde(rename = "code", skip_serializing_if = "Option::is_none")]
pub code: Option<String>,
}
impl ThrottlingExceptionResponseContent {
/// The server response when usage plan or account-level throttling limits exceeded.
pub fn new(message: String) -> ThrottlingExceptionResponseContent {
ThrottlingExceptionResponseContent {
message,
code: None,
}
}
}