use serde::{Deserialize, Serialize};
use std::collections::HashMap;
use crate::{Country, Followers, Image, SubscriptionLevel, UserId};
#[derive(Clone, Debug, Serialize, Deserialize, PartialEq, Eq)]
pub struct PublicUser {
pub display_name: Option<String>,
pub external_urls: HashMap<String, String>,
pub followers: Option<Followers>,
pub href: String,
pub id: UserId<'static>,
#[serde(default = "Vec::new")]
pub images: Vec<Image>,
}
#[derive(Clone, Debug, Serialize, Deserialize, PartialEq, Eq)]
pub struct PrivateUser {
pub country: Option<Country>,
pub display_name: Option<String>,
pub email: Option<String>,
pub external_urls: HashMap<String, String>,
pub explicit_content: Option<ExplicitContent>,
pub followers: Option<Followers>,
pub href: String,
pub id: UserId<'static>,
pub images: Option<Vec<Image>>,
pub product: Option<SubscriptionLevel>,
}
#[derive(Clone, Debug, Serialize, Deserialize, PartialEq, Eq, Default)]
pub struct ExplicitContent {
pub filter_enabled: bool,
pub filter_locked: bool,
}