opensubsonic 0.3.0

Complete async Rust client for the OpenSubsonic/Subsonic REST API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Types for the Internet Radio API section.

use serde::{Deserialize, Serialize};

/// An internet radio station.
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct InternetRadioStation {
    /// Station ID.
    pub id: String,
    /// Station name.
    pub name: String,
    /// Stream URL.
    pub stream_url: String,
    /// Home page URL.
    #[serde(skip_serializing_if = "Option::is_none")]
    pub home_page_url: Option<String>,
}