Skip to content
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

Provide content type number as field in CoapContentFormat::Other #16

Open
pulsastrix opened this issue Jul 2, 2024 · 1 comment
Open
Labels
enhancement New feature or request
Milestone

Comments

@pulsastrix
Copy link
Member

          Hmm, not really related to this PR, but could you also have `Other` accept the respective Content-Format value here?

Originally posted by @JKRhb in #15 (comment)

@pulsastrix
Copy link
Member Author

Apparently, one possible way of implementing this could also be replacing num_derive with num_enum, which seems to be the more widely used crate for this purpose anyways.

num_enum allows creating a variant that captures all other cases using the #[num_enum(catch_all)] attribute.

@pulsastrix pulsastrix added this to the v0.3.0 milestone Jul 19, 2024
@pulsastrix pulsastrix added the enhancement New feature or request label Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant