pub struct FileUrl {
pub track_id: Option<i32>,
pub duration: Option<i32>,
pub url: Option<String>,
pub format_id: Option<i32>,
pub mime_type: Option<String>,
pub sampling_rate: Option<f64>,
pub bit_depth: Option<i32>,
pub status: Option<String>,
pub message: Option<String>,
pub code: Option<String>,
}Expand description
File URL model containing information about a downloadable file
This struct represents a file URL with information about the track, format, and availability for download or streaming.
§Examples
use qobuz_api_rust::models::FileUrl;
let file_url = FileUrl {
track_id: Some(12345),
url: Some("https://example.com/file.mp3".to_string()),
format_id: Some(5),
mime_type: Some("audio/mpeg".to_string()),
..Default::default()
};Fields§
§track_id: Option<i32>ID of the track associated with the file
duration: Option<i32>Duration of the track in seconds
url: Option<String>URL to download or stream the file
format_id: Option<i32>Format ID for the file
mime_type: Option<String>MIME type of the file
sampling_rate: Option<f64>Sampling rate of the file in kHz
bit_depth: Option<i32>Bit depth of the file
status: Option<String>Status of the file URL (e.g., “available”, “error”)
message: Option<String>Message providing additional information about the file URL
code: Option<String>Code providing additional information about the file URL
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FileUrl
impl<'de> Deserialize<'de> for FileUrl
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FileUrl
impl RefUnwindSafe for FileUrl
impl Send for FileUrl
impl Sync for FileUrl
impl Unpin for FileUrl
impl UnwindSafe for FileUrl
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more