You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the library. I'm new to Rust so forgive me if I'm missing something.
All the fields for all of the structs in response.rs are private, and none of the structs derive Eq or PartialEq. This makes it difficult to test functions that return Responses, e.g. attempting to test your example hello world function:
fails with "error[E0616]: field body of struct alexa_sdk::Response is private".
Since all of these structs are expected to be constructed by the user code, and are directly serialized into stable Alexa API response types. I would expect the fields to be public. It would also be a nice convenience if they derived Eq.
The text was updated successfully, but these errors were encountered:
Thanks for the library. I'm new to Rust so forgive me if I'm missing something.
All the fields for all of the structs in response.rs are private, and none of the structs derive
Eq
orPartialEq
. This makes it difficult to test functions that return Responses, e.g. attempting to test your example hello world function:Fails with "error[E0369]: binary operation
==
cannot be applied to typealexa_sdk::Response
"and
fails with "error[E0616]: field
body
of structalexa_sdk::Response
is private".Since all of these structs are expected to be constructed by the user code, and are directly serialized into stable Alexa API response types. I would expect the fields to be public. It would also be a nice convenience if they derived
Eq
.The text was updated successfully, but these errors were encountered: