misskey-rs
misskey-rs copied to clipboard
Implement ApiErrorId with Uuid
ApiErrorId is just a newtype of String.
https://github.com/coord-e/misskey-rs/blob/273c28a43b60da6ad0946d91f5bc62238fdc3e00/misskey-core/src/model.rs#L13
However, it seems that Misskey's error ID is actually a UUID.
Implementing ApiErrorID with Uuid has a big advantage, especially in terms of the ability to create constants.
It would be very useful to have known error IDs as constants.
Unresolved questions
- Are all Misskey's error IDs UUID?
- Where to implement error ID constants?