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
The following response structs use the NewType pattern, and member .0 is private. There are no tests/examples on consuming the value of these. How do we access .0 member?
Hi @Kr011 , thanks for the bug report. I'm working on a fix for this, however, it requires I modify the code generator since these definitions/models are directly generated from the swagger.json.
For now I think you can use std::mem::transmute to get the inner value. e.g.
let resp:PostOrderCancelAllAfterResponse = ...;let inner: serde_json::Value = unsafe{std::mem::transmute(resp)};
The following response structs use the NewType pattern, and member .0 is private. There are no tests/examples on consuming the value of these. How do we access .0 member?
PostOrderCancelAllAfterResponse
GetSchemaResponse
GetSchemaWebsocketHelpResponse
GetUserExecutionHistoryResponse
GetUserMinWithdrawalFeeResponse
The text was updated successfully, but these errors were encountered: