nexus_common/types/
mod.rs1mod pagination;
2pub mod routes;
3mod timeframe;
4
5pub use pagination::Pagination;
6pub use timeframe::Timeframe;
7
8use serde::{Deserialize, Serialize};
9use std::error::Error;
10use utoipa::ToSchema;
11
12pub type DynError = Box<dyn Error + Send + Sync>;
13
14#[derive(Debug, Serialize, Deserialize, ToSchema, PartialEq, Default)]
15#[serde(rename_all = "snake_case")]
16pub enum StreamSorting {
17 #[default]
18 Timeline,
19 TotalEngagement,
20}
21
22#[derive(Deserialize, Debug, ToSchema, Clone)]
23#[serde(rename_all = "snake_case")]
24pub enum StreamReach {
25 Followers,
26 Following,
27 Friends,
28 Wot(u8),
29}