messaging_api_line/models/error_detail.rs
1/*
2 * LINE Messaging API
3 *
4 * This document describes LINE Messaging API.
5 *
6 * The version of the OpenAPI document: 0.0.1
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct ErrorDetail {
16 /// Details of the error. Not included in the response under certain situations.
17 #[serde(rename = "message", skip_serializing_if = "Option::is_none")]
18 pub message: Option<String>,
19 /// Location of where the error occurred. Returns the JSON field name or query parameter name of the request. Not included in the response under certain situations.
20 #[serde(rename = "property", skip_serializing_if = "Option::is_none")]
21 pub property: Option<String>,
22}
23
24impl ErrorDetail {
25 pub fn new() -> ErrorDetail {
26 ErrorDetail {
27 message: None,
28 property: None,
29 }
30 }
31}
32