1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
* 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 TrackSourceFilesAttributes {
/// MD5 hash of file to be uploaded
#[serde(rename = "md5Hash")]
pub md5_hash: String,
/// File size of the track in bytes
#[serde(rename = "size")]
pub size: i64,
#[serde(rename = "status")]
pub status: Box<models::FileStatus>,
#[serde(rename = "uploadLink")]
pub upload_link: Box<models::FileUploadLink>,
}
impl TrackSourceFilesAttributes {
pub fn new(md5_hash: String, size: i64, status: models::FileStatus, upload_link: models::FileUploadLink) -> TrackSourceFilesAttributes {
TrackSourceFilesAttributes {
md5_hash,
size,
status: Box::new(status),
upload_link: Box::new(upload_link),
}
}
}