Skip to main content

beeper_desktop_api/models/
common.rs

1//! Common types and utilities
2
3use serde::{Deserialize, Serialize};
4
5pub type ChatID = String;
6pub type AccountID = String;
7pub type Cursor = String;
8
9/// Pagination direction
10#[derive(Debug, Clone, Serialize, Deserialize)]
11#[serde(rename_all = "lowercase")]
12pub enum Direction {
13    Before,
14    After,
15}