Skip to main content

prawn/models/
play_queue_add_future_operation_payload_data.rs

1/*
2 * TIDAL API
3 *
4 * The TIDAL API is a [JSON:API](https://jsonapi.org/)–compliant web API that exposes TIDAL’s music, metadata, and user-related functionality through a consistent, resource-oriented design. More information and API management are available at [developer.tidal.com](developer.tidal.com)
5 *
6 * The version of the OpenAPI document: 1.0.36
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15#[serde(default)]
16pub struct PlayQueueAddFutureOperationPayloadData {
17    #[serde(rename = "id")]
18    pub id: String,
19    #[serde(rename = "type")]
20    pub r#type: Type,
21}
22
23impl PlayQueueAddFutureOperationPayloadData {
24    pub fn new(id: String, r#type: Type) -> PlayQueueAddFutureOperationPayloadData {
25        PlayQueueAddFutureOperationPayloadData {
26            id,
27            r#type,
28        }
29    }
30}
31/// 
32#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
33pub enum Type {
34    #[serde(rename = "tracks")]
35    Tracks,
36    #[serde(rename = "videos")]
37    Videos,
38    #[serde(rename = "albums")]
39    Albums,
40    #[serde(rename = "playlists")]
41    Playlists,
42}
43
44impl Default for Type {
45    fn default() -> Type {
46        Self::Tracks
47    }
48}
49