Crate syno_api

Source
Expand description

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 APIs
  • error - provides enums implementing Error and Display traits, and From/TryFrom for u16 to convert from error codes returned by the API to enum values
  • serde - adds Serialize and Deserialize trait implementations to DTOs (adds dependency on serde library).

Modules§

auth
SYNO.API.Auth
dto
Generic types applicable to all sub-APIs
error
enums implementing Error for various error codes returned by DSM API
foto
SYNO.Foto (Synology Photos)
foto_team
SYNO.FotoTeam (Synology Photos, sharing features)