Adds a MastodonClient trait

This is useful for user code, which can use the trait to add a layer of
indirection to their code, allowing them to swap out implementations for
testing
This commit is contained in:
Paul Woolcock
2018-08-21 16:29:57 -04:00
parent 6c37ecb1e1
commit 22b4b04738
8 changed files with 87 additions and 26 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ use serde::Deserialize;
///
/// ```no_run
/// # extern crate mammut;
/// # use mammut::{Data, Mastodon};
/// # use mammut::{Data, Mastodon, MastodonClient};
/// # use std::error::Error;
/// # fn main() -> Result<(), Box<Error>> {
/// # let data = Data {