Skip to main content

revolt_api/models/
special_one_of_7.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/// SpecialOneOf7 : Bandcamp track
12
13
14
15#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
16pub struct SpecialOneOf7 {
17    #[serde(rename = "type")]
18    pub r#type: RHashType,
19    #[serde(rename = "content_type")]
20    pub content_type: crate::models::BandcampType,
21    #[serde(rename = "id")]
22    pub id: String,
23}
24
25impl SpecialOneOf7 {
26    /// Bandcamp track
27    pub fn new(r#type: RHashType, content_type: crate::models::BandcampType, id: String) -> SpecialOneOf7 {
28        SpecialOneOf7 {
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 = "Bandcamp")]
40    Bandcamp,
41}
42
43impl Default for RHashType {
44    fn default() -> RHashType {
45        Self::Bandcamp
46    }
47}
48