mastodon API rust lib elefren, fixed and updated. and also all ASYNC! NB. most examples are now wrong.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.0 KiB

pub mod account;
pub mod attachment;
pub mod card;
pub mod context;
pub mod instance;
pub mod list;
pub mod mention;
pub mod notification;
pub mod pageiter;
pub mod relationship;
pub mod report;
pub mod search_result;
pub mod status;
/// An empty JSON object.
#[derive(Deserialize)]
pub struct Empty {}
pub mod prelude {
//! The purpose of this module is to alleviate imports of many common structs
//! by adding a glob import to the top of mastodon heavy modules:
pub use super::Empty;
pub use super::account::{Account, CredientialsBuilder, Source};
pub use super::attachment::{Attachment, MediaType};
pub use super::card::Card;
pub use super::context::Context;
pub use super::instance::*;
pub use super::list::List;
pub use super::mention::Mention;
pub use super::notification::Notification;
pub use super::pageiter::PageIter;
pub use super::relationship::Relationship;
pub use super::report::Report;
pub use super::search_result::SearchResult;
pub use super::status::{Application, Emoji, Status};
}