From 53fc05d36f89673e711670ba9123d5085c03b12a Mon Sep 17 00:00:00 2001 From: "D. Scott Boggs" Date: Sat, 21 Jan 2023 14:34:07 -0500 Subject: [PATCH] Add Id types to prelude and entities prelude to crate prelude --- entities/src/lib.rs | 20 ++++++++++---------- src/lib.rs | 1 + 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/entities/src/lib.rs b/entities/src/lib.rs index 6a58e8c..7e200d6 100644 --- a/entities/src/lib.rs +++ b/entities/src/lib.rs @@ -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, }; } diff --git a/src/lib.rs b/src/lib.rs index 0c9c6e2..c5a418f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -126,6 +126,7 @@ mod macros; /// Automatically import the things you need pub mod prelude { pub use crate::{ + entities::prelude::*, scopes::Scopes, Data, Mastodon,