use crate::{DisplayName, UserId, UserName};
pub use crate::{BroadcasterType, UserType};
#[derive(Clone, Debug, PartialEq, Eq)]
#[cfg_attr(
feature = "serde",
derive(serde_derive::Serialize, serde_derive::Deserialize)
)]
#[cfg_attr(feature = "deny_unknown_fields", serde(deny_unknown_fields))]
pub struct User {
#[cfg_attr(feature = "serde", serde(alias = "user_id"))]
pub id: UserId,
#[cfg_attr(feature = "serde", serde(alias = "user_login"))]
pub login: UserName,
#[cfg_attr(
feature = "serde",
serde(alias = "user_display_name", alias = "user_name")
)]
pub display_name: DisplayName,
#[cfg_attr(feature = "serde", serde(default))]
pub profile_image_url: Option<String>,
}