Crate ncspot_types

Source
Expand description

This crate provides a set of types that derive serde::Deserialize that match the JSON output from ncspot.

Interior types are matched as closely as possible to the way the data is modelled inside of ncspot, with one exception: duration is deserialized as a std::time::Duration whereas internally, ncspot represents this as a u32.

I’m not entirely convinced this is necessary yet, but it may be convenient when using the library.

Structs§

Episode
A podcast episode
Event
A single event from ncspot
Track
A music track

Enums§

Mode
Current playback mode
Playable
Type of event, Track or Episode