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 ArtistClaimsCreateOperationPayloadDataAttributes {
    #[serde(rename = "artistId")]
    pub artist_id: String,
    #[serde(rename = "provider")]
    pub provider: Provider,
}

impl ArtistClaimsCreateOperationPayloadDataAttributes {
    pub fn new(artist_id: String, provider: Provider) -> ArtistClaimsCreateOperationPayloadDataAttributes {
        ArtistClaimsCreateOperationPayloadDataAttributes {
            artist_id,
            provider,
        }
    }
}
/// 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Provider {
    #[serde(rename = "DISTROKID")]
    Distrokid,
    #[serde(rename = "CDBABY")]
    Cdbaby,
    #[serde(rename = "TUNECORE")]
    Tunecore,
}

impl Default for Provider {
    fn default() -> Provider {
        Self::Distrokid
    }
}