Closed zeenix closed 1 year ago
In GitLab by @Absolucy on Apr 1, 2022, 22:45
If anyone is wondering why: MPRIS2 uses string enums throughout the whole API.
It actually is used by many. @fluke had a usecase for it too.
In GitLab by @fluke on Apr 21, 2022, 06:08
Indeed. The systemd-logind has a few API that would translate very well to enum serde as strings.
mentioned in commit 6518e472d8ea4d3dd20b194ccce9964f756f962e
(De)serialize enums as string if signature is "s".