rusty_dropbox_sdk 0.1.0

Unofficial SDK for dropbox in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use anyhow::Result;
use serde::{Deserialize, Serialize};

/// Trait for both sync and async calls
#[allow(unused)]
pub trait Service<O: Sized, F: Sized> {
    fn call_sync(&self) -> Result<Option<O>>;
    fn call(&self) -> Result<F>;
}

pub trait Utils<'a> {
    type T: Serialize + Deserialize<'a>;
    fn payload(&self) -> Option<&Self::T>;
}