safe-vk 0.2.1

A simple library to create your own vk bot for conversations
Documentation
use serde::Serialize;
use serde_json::Value;
use std::future::Future;

pub trait Request {
    fn new(access_token: String) -> Self;

    fn post<T: Serialize + Send, A: Serialize + Send + Sized>(
        &self,
        url: &str,
        method: &str,
        query: A,
        body: T,
    ) -> impl Future<Output = std::result::Result<Value, reqwest::Error>> + Send;

    fn get<T: Serialize + Send, A: Serialize + Send + Sized>(
        &self,
        url: &str,
        method: &str,
        query: A,
        body: T,
    ) -> impl Future<Output = std::result::Result<Value, reqwest::Error>> + Send;
}