Skip to content

Rust SDK

The Rust SDK is a generated crate for Rust services and command-line tools.

Crate

FieldValue
Cratefwallet
Version0.1.0
Repositoryf-wallet/fwallet-rust
Terminal window
cargo add fwallet

Client setup

let mut config = fwallet::apis::configuration::Configuration::new();
config.base_path = "https://api.fwallet.co.ug".to_string();
config.api_key = Some(fwallet::apis::configuration::ApiKey {
prefix: None,
key: "fwk_live_...".to_string(),
});
let wallet = fwallet::apis::wallets_api::wallets_get_wallets_by_id(&config, "wallet-id").await?;

API modules

ResourceModule
Adminfwallet::apis::admin_api
Authfwallet::apis::auth_api
Depositsfwallet::apis::deposits_api
Developerfwallet::apis::developer_api
Healthfwallet::apis::health_api
Journalfwallet::apis::journal_api
Payoutsfwallet::apis::payouts_api
Systemfwallet::apis::system_api
Teamfwallet::apis::team_api
Tenantsfwallet::apis::tenants_api
Transfersfwallet::apis::transfers_api
Walletsfwallet::apis::wallets_api

Operation functions

Rust operation functions use snake_case names derived from the API operation id. For example:

ResourceFunctions
Adminadmin_get_admin_dashboard, admin_get_admin_fee_schedules, admin_post_admin_fee_schedules_by_id_rules
Authauth_get_auth_me
Depositsdeposits_post_deposits_bank_slip_verify, deposits_post_deposits_bank_statements, deposits_post_deposits_momo_webhook
Developerdeveloper_get_developer_api_keys, developer_get_developer_apps, developer_get_developer_request_logs, developer_patch_developer_api_keys_by_id_restrictions, developer_patch_developer_apps_by_id, developer_post_developer_api_keys, developer_post_developer_api_keys_by_id_revoke, developer_post_developer_api_keys_by_id_rotate, developer_post_developer_apps
Healthhealth_get_health
Journaljournal_get_journal, journal_get_journal_by_id
Payoutspayouts_get_payouts_cases, payouts_post_payouts, payouts_post_payouts_by_case_id_approve, payouts_post_payouts_by_case_id_reject
Systemsystem_get_system_organizations, system_get_system_overview, system_get_system_transactions, system_get_system_wallets, system_post_system_organizations
Teamteam_get_team, team_post_team
Tenantstenants_get_tenants_by_id, tenants_post_tenants, tenants_post_tenants_by_id_api_keys
Transferstransfers_post_transfers, transfers_post_transfers_simulate_fee
Walletswallets_get_wallets, wallets_get_wallets_by_id, wallets_get_wallets_lookup, wallets_post_wallets

Features

FeaturePurpose
native-tlsDefault TLS backend.
rustlsRustls TLS backend.