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
I tried to look at the documentation to find a macro to convert my Rust cases to follow the Swift naming convention, camelCase, but to no avail. What's the state of that case?
#[derive(Debug, Deserialize, Serialize, Error)]
#[serde(untagged)]
pub enum SessionError {
// Should become `error` in Swift
Error {
#[serde(rename = "statusCode")]
status_code: u16,
error: ErrorDetail,
},
}
#[derive(Serialize, Deserialize, Debug, Record)]
pub struct ErrorDetail {
pub message: String,
#[serde(rename = "errorCode")]
pub error_code: String,
pub code: ErrorResponseCode,
}
#[derive(Debug, Deserialize_repr, Serialize_repr, Error)]
#[repr(u16)]
pub enum ErrorResponseCode {
// Should be #[uniffie::camelCased] or something here
NoResponse = 12,
ParseError = 13,
ContentNotFound = 5100,
CommunicationError = 22000,
}
The text was updated successfully, but these errors were encountered:
I tried to look at the documentation to find a macro to convert my Rust cases to follow the Swift naming convention,
camelCase
, but to no avail. What's the state of that case?The text was updated successfully, but these errors were encountered: