Change mammut references to elefren

This commit is contained in:
Paul Woolcock
2018-08-21 17:01:05 -04:00
parent ecb8629a53
commit a9b6b52890
8 changed files with 42 additions and 42 deletions
+2 -2
View File
@@ -2,10 +2,10 @@ use std::fmt;
/// Builder struct for defining your application.
/// ```
/// use mammut::apps::{AppBuilder, Scopes};
/// use elefren::apps::{AppBuilder, Scopes};
///
/// let app = AppBuilder {
/// client_name: "mammut_test",
/// client_name: "elefren_test",
/// redirect_uris: "urn:ietf:wg:oauth:2.0:oob",
/// scopes: Scopes::Read,
/// website: None,
+2 -2
View File
@@ -4,8 +4,8 @@ use serde::Deserialize;
/// Abstracts away the `next_page` logic into a single stream of items
///
/// ```no_run
/// # extern crate mammut;
/// # use mammut::{Data, Mastodon, MastodonClient};
/// # extern crate elefren;
/// # use elefren::{Data, Mastodon, MastodonClient};
/// # use std::error::Error;
/// # fn main() -> Result<(), Box<Error>> {
/// # let data = Data {
+12 -12
View File
@@ -1,19 +1,19 @@
//! # Mammut: API Wrapper around the Mastodon API.
//! # Elefren: API Wrapper around the Mastodon API.
//!
//! Most of the api is documented on [Mastodon's
//! github](https://github.com/tootsuite/mastodon/blob/master/docs/Using-the-API/API.md#tag)
//!
//! ```no_run
//! # extern crate mammut;
//! # extern crate elefren;
//! # fn main() {
//! # try().unwrap();
//! # }
//! # fn try() -> mammut::Result<()> {
//! use mammut::{MastodonClient, Registration};
//! use mammut::apps::{AppBuilder, Scopes};
//! # fn try() -> elefren::Result<()> {
//! use elefren::{MastodonClient, Registration};
//! use elefren::apps::{AppBuilder, Scopes};
//!
//! let app = AppBuilder {
//! client_name: "mammut_test",
//! client_name: "elefren_test",
//! redirect_uris: "urn:ietf:wg:oauth:2.0:oob",
//! scopes: Scopes::Read,
//! website: None,
@@ -345,8 +345,8 @@ pub struct ApiError {
/// # Example
///
/// ```
/// # extern crate mammut;
/// # use mammut::StatusesRequest;
/// # extern crate elefren;
/// # use elefren::StatusesRequest;
/// let request = StatusesRequest::new()
/// .only_media()
/// .pinned()
@@ -650,8 +650,8 @@ impl MastodonClient for Mastodon {
/// # Example
///
/// ```no_run
/// # extern crate mammut;
/// # use mammut::{Data, Mastodon, MastodonClient};
/// # extern crate elefren;
/// # use elefren::{Data, Mastodon, MastodonClient};
/// # use std::error::Error;
/// # fn main() -> Result<(), Box<Error>> {
/// # let data = Data {
@@ -668,8 +668,8 @@ impl MastodonClient for Mastodon {
/// ```
///
/// ```no_run
/// # extern crate mammut;
/// # use mammut::{Data, Mastodon, MastodonClient, StatusesRequest};
/// # extern crate elefren;
/// # use elefren::{Data, Mastodon, MastodonClient, StatusesRequest};
/// # use std::error::Error;
/// # fn main() -> Result<(), Box<Error>> {
/// # let data = Data {
+6 -6
View File
@@ -29,7 +29,7 @@ struct AccessToken {
impl Registration {
/// Construct a new registration process to the instance of the `base` url.
/// ```
/// use mammut::registration::Registration;
/// use elefren::registration::Registration;
///
/// let registration = Registration::new("https://mastodon.social");
/// ```
@@ -47,16 +47,16 @@ impl Registration {
/// Register the application with the server from the `base` url.
///
/// ```no_run
/// # extern crate mammut;
/// # extern crate elefren;
/// # fn main() {
/// # try().unwrap();
/// # }
/// # fn try() -> mammut::Result<()> {
/// use mammut::{MastodonClient, Registration};
/// use mammut::apps::{AppBuilder, Scopes};
/// # fn try() -> elefren::Result<()> {
/// use elefren::{MastodonClient, Registration};
/// use elefren::apps::{AppBuilder, Scopes};
///
/// let app = AppBuilder {
/// client_name: "mammut_test",
/// client_name: "elefren_test",
/// redirect_uris: "urn:ietf:wg:oauth:2.0:oob",
/// scopes: Scopes::Read,
/// website: None,
+1 -1
View File
@@ -41,7 +41,7 @@ impl StatusBuilder {
/// Create a new status with text.
/// ```
/// use mammut::status_builder::StatusBuilder;
/// use elefren::status_builder::StatusBuilder;
///
/// let status = StatusBuilder::new("Hello World!".into());
/// ```