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

Hide fields of ID structs

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

Currently Aid, Meid and ObjectId exposes their (parsed) fields publicly. If we can stop exposing them we can rely on the format of string representation to limit the range of these fields (currently datetime method can panic if their values are constructed directly https://github.com/coord-e/misskey-rs/commit/c5de01833b6e407ff430119f8f90fc5affa105d6). This is a breaking change.

coord-e avatar Dec 05 '22 08:12 coord-e