forked from MightyPork/elefren-fork
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user