Skip to main content

tongbal_api/types/
mod.rs

1pub use tongbal_types::category::{Category, CategoryType};
2pub use tongbal_types::new_types::{CategoryId, ChannelId, MessageId, SessionKey};
3
4use serde::{Deserialize, Serialize};
5
6pub(crate) mod constants {
7    pub const AUTH: &str = "auth";
8    pub const CATEGORIES: &str = "categories";
9    pub const CHANNELIDS: &str = "channelIds";
10    pub const CHANNELS: &str = "channels";
11    pub const CHAT: &str = "chat";
12    pub const CHATS: &str = "chats";
13    pub const CLIENT: &str = "client";
14    pub const DONATION: &str = "donation";
15    pub const EVENTS: &str = "events";
16    pub const FOLLOWERS: &str = "followers";
17    pub const LIVES: &str = "lives";
18    pub const ME: &str = "me";
19    pub const NEXT: &str = "next";
20    pub const NOTICE: &str = "notice";
21    pub const PAGE: &str = "page";
22    pub const QUERY: &str = "query";
23    pub const RESTRICT_CHANNELS: &str = "restrict-channels";
24    pub const SEARCH: &str = "search";
25    pub const SEND: &str = "send";
26    pub const SESSIONS: &str = "sessions";
27    pub const SESSION_KEY: &str = "sessionKey";
28    pub const SETTING: &str = "setting";
29    pub const SETTINGS: &str = "settings";
30    pub const SIZE: &str = "size";
31    pub const SORT: &str = "sort";
32    pub const STREAMS: &str = "streams";
33    pub const SUBSCRIBE: &str = "subscribe";
34    pub const SUBSCRIBERS: &str = "subscribers";
35    pub const SUBSCRIPTION: &str = "subscription";
36    pub const UNSUBSCRIBE: &str = "unsubscribe";
37    pub const USERS: &str = "users";
38}
39
40#[derive(Debug, Deserialize, Serialize)]
41pub struct Page {
42    pub next: Option<String>,
43}