1 #![recursion_limit = "256"]
3 #[cfg(feature = "full")]
6 #[cfg(feature = "full")]
8 extern crate diesel_derive_newtype;
9 // this is used in tests
10 #[cfg(feature = "full")]
12 extern crate diesel_migrations;
14 #[cfg(feature = "full")]
16 extern crate async_trait;
19 #[cfg(feature = "full")]
22 #[cfg(feature = "full")]
25 #[cfg(feature = "full")]
27 #[cfg(feature = "full")]
30 use serde::{Deserialize, Serialize};
31 use strum_macros::{Display, EnumString};
33 #[derive(EnumString, Display, Debug, Serialize, Deserialize, Clone, Copy)]
48 #[derive(EnumString, Display, Debug, Serialize, Deserialize, Clone, Copy)]
49 pub enum CommentSortType {
56 #[derive(EnumString, Display, Debug, Serialize, Deserialize, Clone, Copy, PartialEq, Eq)]
57 pub enum ListingType {
63 #[derive(EnumString, Display, Debug, Serialize, Deserialize, Clone, Copy)]
73 #[derive(EnumString, Display, Debug, PartialEq, Eq, Serialize, Deserialize, Clone, Copy)]
74 pub enum SubscribedType {
80 #[derive(EnumString, Display, Debug, Serialize, Deserialize, Clone, Copy, PartialEq, Eq)]
81 pub enum ModlogActionType {
101 EnumString, Display, Debug, Serialize, Deserialize, Clone, Copy, Default, PartialEq, Eq,
103 pub enum PostFeatureType {