tongbal-types 0.1.0

Shared types for the Chzzk API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use serde::{Deserialize, Serialize};

use crate::{Tier, new_types::ChannelId};

#[derive(Debug, Deserialize, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct Subscription {
    pub channel_id: ChannelId,
    pub subscriber_channel_id: ChannelId,
    pub subscriber_nickname: String,
    pub tier_no: Tier,
    pub tier_name: String,
    pub month: u64,
}