mastodon_async_entities/
lib.rs

1use serde::Deserialize;
2use serde::Serialize;
3
4/// Error types for this crate
5pub mod error;
6
7/// Data structures for ser/de of account-related resources
8pub mod account;
9/// Data structures for ser/de of attachment-related resources
10pub mod attachment;
11/// Data structures for ser/de of card-related resources
12pub mod card;
13/// Data structures for ser/de of contetx-related resources
14pub mod context;
15/// Data structures for ser/de of streaming events
16pub mod event;
17/// Data structures for ser/de of filter-related resources
18pub mod filter;
19/// Data structures for ser/de of instance-related resources
20pub mod instance;
21/// Data structures for ser/de of list-related resources
22pub mod list;
23/// Data structures for ser/de of mention-related resources
24pub mod mention;
25/// Data structures for ser/de of notification-related resources
26pub mod notification;
27/// Data structures for ser/de of push-subscription-related resources
28pub mod push;
29/// Data structures for ser/de of relationship-related resources
30pub mod relationship;
31/// Data structures for ser/de of report-related resources
32pub mod report;
33/// Data structures for ser/de of search-related resources
34pub mod search_result;
35/// Data structures for ser/de of status-related resources
36pub mod status;
37/// Data structure for ser/de visibility
38pub mod visibility;
39
40/// An empty JSON object.
41#[derive(Deserialize, Serialize, Debug, Copy, Clone, PartialEq, Eq)]
42pub struct Empty {}
43
44/// The purpose of this module is to alleviate imports of many common
45/// structs by adding a glob import to the top of mastodon heavy
46/// modules:
47pub mod prelude {
48    pub use super::{
49        account::{Account, AccountId, Source},
50        attachment::{Attachment, AttachmentId, MediaType},
51        card::Card,
52        context::Context,
53        event::Event,
54        filter::{Filter, FilterContext, FilterId},
55        instance::*,
56        list::{List, ListId},
57        mention::{Mention, MentionId},
58        notification::{Notification, NotificationId},
59        push::{Subscription, SubscriptionId},
60        relationship::{Relationship, RelationshipId},
61        report::{Report, ReportId},
62        search_result::SearchResult,
63        status::{Application, Emoji, Status, StatusId},
64        Empty,
65    };
66}