-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ContactStatus can be an enum #32
Comments
Yes, this is a good idea, along with having similar enums for things like 2-letter country codes (there has to be a crate that already provides this?). |
That definitely exists, https://crates.io/crates/celes looks like a decent option. |
I tried and I couldn't get the serde impls to line up correctly. I think we'd need tafia/quick-xml#304 to be able to do this without adding a lot of custom (de)serialization code. |
Possible values:
clientDeleteProhibited, clientHold, clientRenewProhibited, clientTransferProhibited, clientUpdateProhibited, inactive, ok, pendingCreate, pendingDelete, pendingRenew, pendingTransfer, pendingUpdate, serverDeleteProhibited, serverHold, serverRenewProhibited, serverTransferProhibited, serverUpdateProhibited
https://datatracker.ietf.org/doc/html/rfc5731#section-2.3
This might be more ergonomic for developers, what do you think?
The text was updated successfully, but these errors were encountered: