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 AlbumCreateOperationPayloadData {
    #[serde(rename = "attributes")]
    pub attributes: Box<models::AlbumCreateOperationPayloadDataAttributes>,
    #[serde(rename = "relationships")]
    pub relationships: Box<models::AlbumCreateOperationPayloadDataRelationships>,
    #[serde(rename = "type")]
    pub r#type: Type,
}

impl AlbumCreateOperationPayloadData {
    pub fn new(
        attributes: models::AlbumCreateOperationPayloadDataAttributes,
        relationships: models::AlbumCreateOperationPayloadDataRelationships,
        r#type: Type,
    ) -> AlbumCreateOperationPayloadData {
        AlbumCreateOperationPayloadData {
            attributes: Box::new(attributes),
            relationships: Box::new(relationships),
            r#type,
        }
    }
}
///
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Type {
    #[serde(rename = "albums")]
    Albums,
}

impl Default for Type {
    fn default() -> Type {
        Self::Albums
    }
}