smbcloud-wallet-kit-v3 1.0.6

smbCloud Wallet Kit V3 for NotWallet Crypto non-custodial Solana crypto wallet.
Documentation
use std::fmt::Display;

#[derive(uniffi::Enum)]
pub enum StorageKey {
    Seeds,
    KeyPairs,
    ActiveKeyPair,
}

impl Display for StorageKey {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        match self {
            StorageKey::Seeds => write!(f, "seeds"),
            StorageKey::KeyPairs => write!(f, "keypairs"),
            StorageKey::ActiveKeyPair => write!(f, "activeKeypair"),
        }
    }
}

#[uniffi::export]
pub fn storage(key: StorageKey) -> String {
    key.to_string()
}