revolt_api/models/
special_one_of_4.rs1#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
16pub struct SpecialOneOf4 {
17 #[serde(rename = "type")]
18 pub r#type: RHashType,
19 #[serde(rename = "content_type")]
20 pub content_type: crate::models::TwitchType,
21 #[serde(rename = "id")]
22 pub id: String,
23}
24
25impl SpecialOneOf4 {
26 pub fn new(r#type: RHashType, content_type: crate::models::TwitchType, id: String) -> SpecialOneOf4 {
28 SpecialOneOf4 {
29 r#type,
30 content_type,
31 id,
32 }
33 }
34}
35
36#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
38pub enum RHashType {
39 #[serde(rename = "Twitch")]
40 Twitch,
41}
42
43impl Default for RHashType {
44 fn default() -> RHashType {
45 Self::Twitch
46 }
47}
48