use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
#[serde(default)]
pub struct ArtworkCreateOperationPayloadData {
#[serde(rename = "attributes")]
pub attributes: Box<models::ArtworkCreateOperationPayloadDataAttributes>,
#[serde(rename = "type")]
pub r#type: Type,
}
impl ArtworkCreateOperationPayloadData {
pub fn new(attributes: models::ArtworkCreateOperationPayloadDataAttributes, r#type: Type) -> ArtworkCreateOperationPayloadData {
ArtworkCreateOperationPayloadData {
attributes: Box::new(attributes),
r#type,
}
}
}
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Type {
#[serde(rename = "artworks")]
Artworks,
}
impl Default for Type {
fn default() -> Type {
Self::Artworks
}
}