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

View File

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