galoy-cli 0.1.7

A CLI Client for interacting with Galoy Backend
Documentation
1
2
3
4
5
6
7
8
9
10
11
use super::{queries::query_me::WalletCurrency, types::Wallet};

impl From<&WalletCurrency> for Wallet {
    fn from(currency: &WalletCurrency) -> Self {
        match currency {
            WalletCurrency::USD => Wallet::Usd,
            WalletCurrency::BTC => Wallet::Btc,
            _ => panic!("Unsupported currency"),
        }
    }
}