revolt_api/models/
special_one_of_4.rs

1/*
2 * Revolt API
3 *
4 * Open source user-first chat platform.
5 *
6 * The version of the OpenAPI document: 0.6.5
7 * Contact: contact@revolt.chat
8 * Generated by: https://openapi-generator.tech
9 */
10
11/// SpecialOneOf4 : Twitch stream or clip
12
13
14
15#[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    /// Twitch stream or clip
27    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/// 
37#[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