pub struct TransactionsApiClient { /* private fields */ }
Implementations§
Source§impl TransactionsApiClient
impl TransactionsApiClient
pub fn new(configuration: Rc<Configuration>) -> TransactionsApiClient
Trait Implementations§
Source§impl TransactionsApi for TransactionsApiClient
impl TransactionsApi for TransactionsApiClient
fn create_transaction( &self, budget_id: &str, data: PostTransactionsWrapper, ) -> Result<SaveTransactionsResponse, Error>
fn delete_transaction( &self, budget_id: &str, transaction_id: &str, ) -> Result<TransactionResponse, Error>
fn get_transaction_by_id( &self, budget_id: &str, transaction_id: &str, ) -> Result<TransactionResponse, Error>
fn get_transactions( &self, budget_id: &str, since_date: Option<String>, _type: Option<&str>, last_knowledge_of_server: Option<i64>, ) -> Result<TransactionsResponse, Error>
fn get_transactions_by_account( &self, budget_id: &str, account_id: &str, since_date: Option<String>, _type: Option<&str>, last_knowledge_of_server: Option<i64>, ) -> Result<TransactionsResponse, Error>
fn get_transactions_by_category( &self, budget_id: &str, category_id: &str, since_date: Option<String>, _type: Option<&str>, last_knowledge_of_server: Option<i64>, ) -> Result<HybridTransactionsResponse, Error>
fn get_transactions_by_month( &self, budget_id: &str, month: &str, since_date: Option<String>, _type: Option<&str>, last_knowledge_of_server: Option<i64>, ) -> Result<HybridTransactionsResponse, Error>
fn get_transactions_by_payee( &self, budget_id: &str, payee_id: &str, since_date: Option<String>, _type: Option<&str>, last_knowledge_of_server: Option<i64>, ) -> Result<HybridTransactionsResponse, Error>
fn import_transactions( &self, budget_id: &str, ) -> Result<TransactionsImportResponse, Error>
fn update_transaction( &self, budget_id: &str, transaction_id: &str, data: PutTransactionWrapper, ) -> Result<TransactionResponse, Error>
fn update_transactions( &self, budget_id: &str, data: PatchTransactionsWrapper, ) -> Result<SaveTransactionsResponse, Error>
Auto Trait Implementations§
impl Freeze for TransactionsApiClient
impl !RefUnwindSafe for TransactionsApiClient
impl !Send for TransactionsApiClient
impl !Sync for TransactionsApiClient
impl Unpin for TransactionsApiClient
impl !UnwindSafe for TransactionsApiClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more