/*
* 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 ResourceIdentifier {
/// Resource id
#[serde(rename = "id")]
pub id: String,
/// Resource type
#[serde(rename = "type")]
pub r#type: String,
}
impl ResourceIdentifier {
pub fn new(id: String, r#type: String) -> ResourceIdentifier {
ResourceIdentifier {
id,
r#type,
}
}
}