Add Id types to prelude and entities prelude to crate prelude
This commit is contained in:
parent
be39ca6e24
commit
53fc05d36f
|
@ -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,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue