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")]
11 #[allow(unused_imports)]
13 extern crate diesel_migrations;
16 #[cfg(feature = "full")]
19 #[cfg(feature = "full")]
22 #[cfg(feature = "full")]
24 #[cfg(feature = "full")]
27 use serde::{Deserialize, Serialize};
28 use strum_macros::{Display, EnumString};
30 #[derive(EnumString, Display, Debug, Serialize, Deserialize, Clone, Copy)]
45 #[derive(EnumString, Display, Debug, Serialize, Deserialize, Clone, Copy)]
46 pub enum CommentSortType {
53 #[derive(EnumString, Display, Debug, Serialize, Deserialize, Clone, Copy, PartialEq, Eq)]
54 pub enum ListingType {
60 #[derive(EnumString, Display, Debug, Serialize, Deserialize, Clone, Copy)]
70 #[derive(EnumString, Display, Debug, PartialEq, Eq, Serialize, Deserialize, Clone, Copy)]
71 pub enum SubscribedType {
77 #[derive(EnumString, Display, Debug, Serialize, Deserialize, Clone, Copy, PartialEq, Eq)]
78 pub enum ModlogActionType {