6 releases
new 0.3.3 | Dec 9, 2024 |
---|---|
0.3.2 | Dec 8, 2024 |
0.3.1 | Jun 14, 2024 |
0.3.0 | Apr 28, 2024 |
0.1.0 | Apr 22, 2024 |
#781 in Encoding
143 downloads per month
Used in syno-photos-util
22KB
483 lines
syno_api
An incomplete set of data transfer objects (DTOs) and errors for Synology DSM APIs.
Features
By default, all of the following features are enabled.
dto
- provides DTOs for various JSON responses produced by Synology DSM APIserror
- provides enums implementingError
andDisplay
traits, andFrom
/TryFrom
foru16
to convert from error codes returned by the API to enum valuesserde
- addsSerialize
andDeserialize
trait implementations to DTOs (adds dependency onserde
library).
Contributing
I would very much welcome pull requests adding more types / functionality. Current set is driven by what my other projects need from the APIs.
lib.rs
:
An incomplete set of data transfer objects (DTOs) and errors for Synology DSM APIs.
Features
By default, all of the following features are enabled.
dto
- provides DTOs for various JSON responses produced by Synology DSM APIserror
- provides enums implementingError
andDisplay
traits, andFrom
/TryFrom
foru16
to convert from error codes returned by the API to enum valuesserde
- addsSerialize
andDeserialize
trait implementations to DTOs (adds dependency onserde
library). Generic types applicable to all sub-APIs
Dependencies
~0.3–1MB
~21K SLoC