tongbal_api/restriction/types.rs
1use serde::{Deserialize, Serialize};
2
3use crate::types::ChannelId;
4
5#[derive(Debug, Deserialize, Serialize)]
6#[serde(rename_all = "camelCase")]
7pub struct RestrictionChannel {
8 pub restricted_channel_id: ChannelId,
9 pub restricted_channel_name: String,
10 pub created_date: String,
11 pub release_date: String,
12}
13
14#[derive(Serialize)]
15#[serde(rename_all = "camelCase")]
16pub struct RestrictionBody<'a> {
17 pub target_channel_id: &'a ChannelId,
18}