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 DynamicPagesAttributes {
    /// Type of the page eg. home, artist
    #[serde(rename = "pageType")]
    pub page_type: PageType,
    /// Id used for reporting user events
    #[serde(rename = "reportingId")]
    pub reporting_id: uuid::Uuid,
}

impl DynamicPagesAttributes {
    pub fn new(page_type: PageType, reporting_id: uuid::Uuid) -> DynamicPagesAttributes {
        DynamicPagesAttributes {
            page_type,
            reporting_id,
        }
    }
}
/// Type of the page eg. home, artist
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum PageType {
    #[serde(rename = "HOME_STATIC")]
    HomeStatic,
    #[serde(rename = "HOME_FOR_YOU")]
    HomeForYou,
    #[serde(rename = "HOME_EDITORIAL")]
    HomeEditorial,
    #[serde(rename = "ARTIST")]
    Artist,
}

impl Default for PageType {
    fn default() -> PageType {
        Self::HomeStatic
    }
}