imap-codec
imap-codec copied to clipboard
refactor: Avoid struct-like enum variants?
This would give us the flexibility to re-group variants, e.g., enum CommandAny, by sacrifycing only a little of readability.
I... 'm not too keen to do this right now. It adds quite a bit of boilerplate for theoretical usage. In fact, it's only really useful for Authenticate (due to our experience in imap-next.)
Maybe we should refactor CommandBody::Authenticate only for now?