feat: add verification to channel model
- clean up response models - change verification status serialization
This commit is contained in:
parent
4d80dffcd5
commit
9aafb84e0f
35 changed files with 459 additions and 451 deletions
|
|
@ -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
|
||||
|
|
|
|||
Reference in a new issue