The Rust SDK is a generated crate for Rust services and command-line tools.
Crate
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 {
key: "fwk_live_...".to_string(),
let wallet = fwallet::apis::wallets_api::wallets_get_wallets_by_id(&config, "wallet-id").await?;
API modules
| Resource | Module |
|---|
| Admin | fwallet::apis::admin_api |
| Auth | fwallet::apis::auth_api |
| Deposits | fwallet::apis::deposits_api |
| Developer | fwallet::apis::developer_api |
| Health | fwallet::apis::health_api |
| Journal | fwallet::apis::journal_api |
| Payouts | fwallet::apis::payouts_api |
| System | fwallet::apis::system_api |
| Team | fwallet::apis::team_api |
| Tenants | fwallet::apis::tenants_api |
| Transfers | fwallet::apis::transfers_api |
| Wallets | fwallet::apis::wallets_api |
Operation functions
Rust operation functions use snake_case names derived from the API operation id. For example:
| Resource | Functions |
|---|
| Admin | admin_get_admin_dashboard, admin_get_admin_fee_schedules, admin_post_admin_fee_schedules_by_id_rules |
| Auth | auth_get_auth_me |
| Deposits | deposits_post_deposits_bank_slip_verify, deposits_post_deposits_bank_statements, deposits_post_deposits_momo_webhook |
| Developer | developer_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 |
| Health | health_get_health |
| Journal | journal_get_journal, journal_get_journal_by_id |
| Payouts | payouts_get_payouts_cases, payouts_post_payouts, payouts_post_payouts_by_case_id_approve, payouts_post_payouts_by_case_id_reject |
| System | system_get_system_organizations, system_get_system_overview, system_get_system_transactions, system_get_system_wallets, system_post_system_organizations |
| Team | team_get_team, team_post_team |
| Tenants | tenants_get_tenants_by_id, tenants_post_tenants, tenants_post_tenants_by_id_api_keys |
| Transfers | transfers_post_transfers, transfers_post_transfers_simulate_fee |
| Wallets | wallets_get_wallets, wallets_get_wallets_by_id, wallets_get_wallets_lookup, wallets_post_wallets |
Features
| Feature | Purpose |
|---|
native-tls | Default TLS backend. |
rustls | Rustls TLS backend. |