From 50fbef1bf4108adadc80ce3bafa5e583e32ac3ee Mon Sep 17 00:00:00 2001 From: nikkibuster Date: Sat, 9 May 2026 15:39:03 +0300 Subject: [PATCH 1/2] make Jars optional --- src/models/account/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/models/account/mod.rs b/src/models/account/mod.rs index 65cb3c9..6dc60bb 100644 --- a/src/models/account/mod.rs +++ b/src/models/account/mod.rs @@ -20,7 +20,7 @@ pub struct Account { #[serde(rename = "accounts")] cards: Vec, - jars: Vec, + jars: Option>, } /// getters block @@ -58,7 +58,7 @@ impl Account { self.cards.clone() } - pub fn jars(&self) -> Vec { + pub fn jars(&self) -> Option> { self.jars.clone() } } From 7f444e5f61cba8ad7f363e714ff77ebdcfe559e6 Mon Sep 17 00:00:00 2001 From: nikkibuster Date: Sat, 9 May 2026 15:42:00 +0300 Subject: [PATCH 2/2] lint issues --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 0623bee..007a736 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -105,7 +105,7 @@ impl Client { Ok(account) } - /// + /// Return statements for account in from to time range pub async fn statements( &self, args: T,