aboutsummaryrefslogtreecommitdiffstats
path: root/src/models/error_detail.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-11-07 03:57:33 -0500
committerJesse Luehrs <doy@tozt.net>2019-11-07 03:57:33 -0500
commita942c7c8e17eb829ef1581c0b556665784f19e33 (patch)
treeff391dc8d22860009bd06f77042cb74d6eb6c1f2 /src/models/error_detail.rs
parent4c94e5f9101c14bfc5c6989d11ea6c855c809f0b (diff)
downloadynab-api-a942c7c8e17eb829ef1581c0b556665784f19e33.tar.gz
ynab-api-a942c7c8e17eb829ef1581c0b556665784f19e33.zip
update openapi spec and regenerate with newer openapi-generator
the newer openapi-generator picks up fixes for optional parameters, among other things
Diffstat (limited to 'src/models/error_detail.rs')
-rw-r--r--src/models/error_detail.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/models/error_detail.rs b/src/models/error_detail.rs
index 32e0380..b8ce02a 100644
--- a/src/models/error_detail.rs
+++ b/src/models/error_detail.rs
@@ -10,6 +10,7 @@
+
#[derive(Debug, PartialEq, Serialize, Deserialize)]
pub struct ErrorDetail {
#[serde(rename = "id")]
@@ -23,9 +24,9 @@ pub struct ErrorDetail {
impl ErrorDetail {
pub fn new(id: String, name: String, detail: String) -> ErrorDetail {
ErrorDetail {
- id: id,
- name: name,
- detail: detail,
+ id,
+ name,
+ detail,
}
}
}