use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
#[serde(default)]
pub struct AlbumCreateOperationPayloadDataRelationshipsArtistsData {
#[serde(rename = "id")]
pub id: String,
#[serde(rename = "type")]
pub r#type: Type,
}
impl AlbumCreateOperationPayloadDataRelationshipsArtistsData {
pub fn new(id: String, r#type: Type) -> AlbumCreateOperationPayloadDataRelationshipsArtistsData {
AlbumCreateOperationPayloadDataRelationshipsArtistsData {
id,
r#type,
}
}
}
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Type {
#[serde(rename = "artists")]
Artists,
}
impl Default for Type {
fn default() -> Type {
Self::Artists
}
}