Add Id types to prelude and entities prelude to crate prelude

This commit is contained in:
D. Scott Boggs 2023-01-21 14:34:07 -05:00 committed by Scott Boggs
parent be39ca6e24
commit 53fc05d36f
2 changed files with 11 additions and 10 deletions

View File

@ -46,21 +46,21 @@ pub struct Empty {}
/// modules:
pub mod prelude {
pub use super::{
account::{Account, Source},
attachment::{Attachment, MediaType},
account::{Account, AccountId, Source},
attachment::{Attachment, AttachmentId, MediaType},
card::Card,
context::Context,
event::Event,
filter::{Filter, FilterContext},
filter::{Filter, FilterContext, FilterId},
instance::*,
list::List,
mention::Mention,
notification::Notification,
push::Subscription,
relationship::Relationship,
report::Report,
list::{List, ListId},
mention::{Mention, MentionId},
notification::{Notification, NotificationId},
push::{Subscription, SubscriptionId},
relationship::{Relationship, RelationshipId},
report::{Report, ReportId},
search_result::SearchResult,
status::{Application, Emoji, Status},
status::{Application, Emoji, Status, StatusId},
Empty,
};
}

View File

@ -126,6 +126,7 @@ mod macros;
/// Automatically import the things you need
pub mod prelude {
pub use crate::{
entities::prelude::*,
scopes::Scopes,
Data,
Mastodon,