From 5656412698b00571c11b80425d84165127245c6b Mon Sep 17 00:00:00 2001 From: Kevin Wang Date: Wed, 23 Oct 2024 21:47:59 +0800 Subject: [PATCH] Add public `fn Account::id` --- src/lib.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index ed63fdc..b03aadb 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -408,6 +408,11 @@ impl Account { let _ = Problem::from_response(rsp).await?; Ok(()) } + + /// Get the account ID + pub fn id(&self) -> &str { + &self.inner.id + } } struct AccountInner {