From efc9c79ab03756a685b8e19710327bfa12e0260c Mon Sep 17 00:00:00 2001 From: alemi Date: Thu, 21 Mar 2024 00:05:00 +0100 Subject: [PATCH] chore: prelude to import all ActivityStream traits --- src/activitystream/prelude.rs | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/activitystream/prelude.rs diff --git a/src/activitystream/prelude.rs b/src/activitystream/prelude.rs new file mode 100644 index 00000000..c3ed9123 --- /dev/null +++ b/src/activitystream/prelude.rs @@ -0,0 +1,27 @@ +pub use super::{ + Base as _, BaseMut as _, + link::{Link as _, LinkMut as _}, + object::{ + Object as _, ObjectMut as _, + tombstone::{Tombstone as _, TombstoneMut as _}, + relationship::{Relationship as _, RelationshipMut as _}, + profile::{Profile as _, /* ProfileMut as _ */}, // TODO! + place::{Place as _, PlaceMut as _}, + actor::{Actor as _, ActorMut as _}, + document::{ + Document as _, DocumentMut as _, Image as _, + }, + collection::{ + Collection as _, CollectionMut as _, + page::{CollectionPage as _, CollectionPageMut as _}, + }, + activity::{ + Activity as _, ActivityMut as _, + reject::{Reject as _, RejectMut as _}, + offer::{Offer as _, OfferMut as _}, + intransitive::{IntransitiveActivity as _, IntransitiveActivityMut as _}, + ignore::{Ignore as _, IgnoreMut as _}, + accept::{Accept as _, AcceptMut as _}, + }, + } +};