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