+#![recursion_limit = "256"]
+
#[cfg(feature = "full")]
#[macro_use]
extern crate diesel;
extern crate diesel_derive_newtype;
// this is used in tests
#[cfg(feature = "full")]
-#[allow(unused_imports)]
#[macro_use]
extern crate diesel_migrations;
+#[cfg(feature = "full")]
+#[macro_use]
+extern crate async_trait;
+
pub mod aggregates;
#[cfg(feature = "full")]
pub mod impls;
All,
ModRemovePost,
ModLockPost,
- ModStickyPost,
+ ModFeaturePost,
ModRemoveComment,
ModRemoveCommunity,
ModBanFromCommunity,
AdminPurgePost,
AdminPurgeComment,
}
+
+#[derive(
+ EnumString, Display, Debug, Serialize, Deserialize, Clone, Copy, Default, PartialEq, Eq,
+)]
+pub enum PostFeatureType {
+ #[default]
+ Local,
+ Community,
+}