[−][src]Crate pandora_api_derive
Derive macro for automatically adding an implementation of pandora_api::PandoraApiRequest to a struct.
The name of the Pandora API method that will be called defaults to the result of converting the struct name to mixed case (GetFoo -> getFoo). This may be overridden using the #[pandora_request(method_name = getFOOBar) struct attribute.
The default error type is Error. If a different type name is required, this may be overridden using the #[pandora_request(error_type = FooError)] struct attribute.
The default return type of the request is
The default for a request is to send it unencrypted. If the request must be encrypted, this may be overridden using the #[pandora_request(encrypted = true)] struct attribute.
Derive Macros
PandoraRequest | Derive macro for adding implementation of pandora_api::PandoraApiRequest trait to a struct. |