feat: add verification to channel model

- clean up response models
- change verification status serialization
This commit is contained in:
ThetaDev 2022-10-18 11:45:51 +02:00
parent 4d80dffcd5
commit 9aafb84e0f
35 changed files with 459 additions and 451 deletions

View file

@ -582,7 +582,6 @@ pub struct ChannelTag {
/// Verification status of a channel
#[derive(Default, Copy, Clone, Debug, Serialize, Deserialize, PartialEq, Eq, Hash)]
#[serde(rename_all = "snake_case")]
#[non_exhaustive]
pub enum Verification {
#[default]
@ -656,6 +655,8 @@ pub struct Channel<T> {
pub subscriber_count: Option<u64>,
/// Channel avatar / profile picture
pub avatar: Vec<Thumbnail>,
/// Channel verification mark
pub verification: Verification,
/// Channel description text
pub description: String,
/// List of words to describe the topic of the channel