/*
* LINE Messaging API(Insight)
*
* This document describes LINE Messaging API(Insight).
*
* The version of the OpenAPI document: 0.0.1
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ErrorResponse {
/// Message containing information about the error.
#[serde(rename = "message")]
pub message: String,
/// An array of error details. If the array is empty, this property will not be included in the response.
#[serde(rename = "details", skip_serializing_if = "Option::is_none")]
pub details: Option<Vec<models::ErrorDetail>>,
}
impl ErrorResponse {
pub fn new(message: String) -> ErrorResponse {
ErrorResponse {
message,
details: None,
}
}
}