funpay-client 0.2.3

Unofficial async client for FunPay marketplace - chats, orders, offers polling
Documentation
1
2
3
4
5
6
7
8
9
10
11
use async_trait::async_trait;
use std::collections::HashMap;

#[async_trait]
pub trait StateStorage: Send + Sync {
    async fn load(&self) -> anyhow::Result<HashMap<i64, i64>>;
    async fn save(&self, data: &HashMap<i64, i64>) -> anyhow::Result<()>;
}

pub mod json;
pub mod memory;