prawn 0.0.3

Rust Client for the Tidal API providing comprehensive API coverag, and easy OAuth management
Documentation
/*
 * TIDAL API
 *
 * 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)
 *
 * The version of the OpenAPI document: 1.0.36
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
#[serde(default)]
pub struct PlayQueuesAttributes {
    /// ISO 8601 creation timestamp
    #[serde(rename = "createdAt")]
    pub created_at: String,
    /// ISO 8601 last modified timestamp
    #[serde(rename = "lastModifiedAt")]
    pub last_modified_at: String,
    /// Queue's repeat mode
    #[serde(rename = "repeat")]
    pub repeat: Repeat,
    /// Queue is shuffled or not
    #[serde(rename = "shuffled")]
    pub shuffled: bool,
}

impl PlayQueuesAttributes {
    pub fn new(created_at: String, last_modified_at: String, repeat: Repeat, shuffled: bool) -> PlayQueuesAttributes {
        PlayQueuesAttributes {
            created_at,
            last_modified_at,
            repeat,
            shuffled,
        }
    }
}
/// Queue's repeat mode
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Repeat {
    #[serde(rename = "NONE")]
    None,
    #[serde(rename = "ONE")]
    One,
    #[serde(rename = "BATCH")]
    Batch,
}

impl Default for Repeat {
    fn default() -> Repeat {
        Self::None
    }
}