revolt_api/models/
special_one_of_7.rs1#[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 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#[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