misskey-rs icon indicating copy to clipboard operation
misskey-rs copied to clipboard

Implement ApiErrorId with Uuid

Open coord-e opened this issue 5 years ago • 0 comments

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?

coord-e avatar Jan 17 '21 14:01 coord-e