diff options
author | Jesse Luehrs <doy@tozt.net> | 2019-09-14 14:19:01 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2019-09-14 14:39:29 -0400 |
commit | 4c94e5f9101c14bfc5c6989d11ea6c855c809f0b (patch) | |
tree | 4e4e7ba93d41eda4c8a4c5346c3e02fc88d8789d /src/models/transaction_detail_all_of.rs | |
parent | a43423c5f36f8ff6642c9f6ad85800ab38758395 (diff) | |
download | ynab-api-4c94e5f9101c14bfc5c6989d11ea6c855c809f0b.tar.gz ynab-api-4c94e5f9101c14bfc5c6989d11ea6c855c809f0b.zip |
update openapi spec2.0.0
Diffstat (limited to 'src/models/transaction_detail_all_of.rs')
-rw-r--r-- | src/models/transaction_detail_all_of.rs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/models/transaction_detail_all_of.rs b/src/models/transaction_detail_all_of.rs index cead8f5..68f2ebf 100644 --- a/src/models/transaction_detail_all_of.rs +++ b/src/models/transaction_detail_all_of.rs @@ -9,11 +9,8 @@ */ -#[allow(unused_imports)] -use serde_json::Value; - -#[derive(Debug, Serialize, Deserialize)] +#[derive(Debug, PartialEq, Serialize, Deserialize)] pub struct TransactionDetailAllOf { #[serde(rename = "account_name")] pub account_name: String, @@ -23,11 +20,11 @@ pub struct TransactionDetailAllOf { pub category_name: Option<String>, /// If a split transaction, the subtransactions. #[serde(rename = "subtransactions")] - pub subtransactions: Vec<::models::SubTransaction>, + pub subtransactions: Vec<crate::models::SubTransaction>, } impl TransactionDetailAllOf { - pub fn new(account_name: String, subtransactions: Vec<::models::SubTransaction>) -> TransactionDetailAllOf { + pub fn new(account_name: String, subtransactions: Vec<crate::models::SubTransaction>) -> TransactionDetailAllOf { TransactionDetailAllOf { account_name: account_name, payee_name: None, |