1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
use crate::{
helix::{self, Request},
types,
};
use serde::{Deserialize, Serialize};
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,
}
#[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,
}