Skip to content

Add optional serde support for *Type enums - #534

Merged
Serial-ATA merged 5 commits into
Serial-ATA:mainfrom
Lepidopteran:serde_support
Aug 9, 2025
Merged

Serial-ATA merged 5 commits into
Serial-ATA:mainfrom
Lepidopteran:serde_support

Conversation

@Lepidopteran

@Lepidopteran Lepidopteran commented Aug 2, 2025 •

Copy link
Copy Markdown
Contributor

Adds optional serde support for FileType, MimeType, PictureType, and TagType.

Let me know if I should remove/add some types.

Resolves #533 partially.

@Lepidopteran

Copy link
Copy Markdown
Contributor Author

Not sure how to deal with the clippy unsafe check :/

@Serial-ATA

Copy link
Copy Markdown
Owner

Sounds like a good lint in theory, but not helpful in this case. You can just #[allow] it

@Serial-ATA Serial-ATA added this to the 0.23.0 milestone Aug 2, 2025

@uklotzde uklotzde left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Serial-ATA I tried to explain why I think this is a really bad idea. But it's your decision.

Comment thread lofty/src/picture.rs Resolved
Comment thread lofty/src/picture.rs Resolved
Too confusing, doesn't actually serialize to the actual MIME strings, just the enum variant names.
@Serial-ATA
Serial-ATA merged commit 0668917 into Serial-ATA:main Aug 9, 2025
@Lepidopteran
Lepidopteran deleted the serde_support branch August 9, 2025 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add optional support for serde serialization & de-serialization

3 participants