Lines
0 %
Functions
use serde::{Deserialize, Serialize};
use crate::{
commands::{Command, CommandResponse, ResponseParserError, empty_command_request},
response_tokenizer::ResponseAttributes,
types::Uri,
};
pub struct Playlist;
empty_command_request!(Playlist, "playlist");
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct PlaylistResponse(Vec<Uri>);
impl PlaylistResponse {
pub fn new(items: Vec<Uri>) -> Self {
PlaylistResponse(items)
}
impl CommandResponse for PlaylistResponse {
fn into_response_enum(self) -> crate::Response {
todo!()
fn from_response_enum(response: crate::Response) -> Option<Self> {
fn parse(parts: ResponseAttributes<'_>) -> Result<Self, ResponseParserError> {
unimplemented!()
impl Command for Playlist {
type Request = PlaylistRequest;
type Response = PlaylistResponse;