#spotify #json #output #deserializing #terminal #client #ncspot

ncspot-types

A set of types for deserializing JSON output from the ncspot terminal Spotify client

3 unstable releases

0.2.1 Jun 23, 2023
0.2.0 Jun 22, 2023
0.1.0 Jun 22, 2023

#503 in Audio

48 downloads per month

MIT license

5KB
57 lines

Welcome to ncspot-types 👋

Documentation License: MIT

A set of types for deserializing JSON output from the ncspot terminal Spotify client

Show your support

Give a ⭐️ if this project helped you!


This README was generated with ❤️ by readme-md-generator


lib.rs:

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.

Dependencies

~1.9–2.7MB
~51K SLoC