use crate::{
helix::{self, Request},
types,
};
use serde_derive::{Deserialize, Serialize};
use std::borrow::Cow;
pub mod get_hypetrain_events;
#[doc(inline)]
pub use get_hypetrain_events::GetHypeTrainEventsRequest;
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
#[non_exhaustive]
#[serde(rename_all = "UPPERCASE")]
pub enum ContributionType {
Bits,
Subscription,
Other,
}
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
#[cfg_attr(feature = "deny_unknown_fields", serde(deny_unknown_fields))]
#[non_exhaustive]
pub struct Contribution {
pub total: i64,
#[serde(rename = "type")]
pub type_: ContributionType,
pub user: types::UserId,
}