jdt_maybe_multiple

Crates.iojdt_maybe_multiple
lib.rsjdt_maybe_multiple
version0.1.6
created_at2025-01-01 00:08:16.993429+00
updated_at2025-06-26 00:10:46.941305+00
descriptionMaybeMultiple is a utility crate that establishes an enum to use in place of `Option` where the content may be singular, multiple, or None
homepage
repositoryhttps://gitlab.com/justindthomas/maybe_multiple
max_upload_size
id1500466
size12,533
Justin Thomas (justindthomas)

documentation

README

MaybeMultiple

This is a utility crate that establishes an enum to use in place of Option where the content may be singular, multiple (a Vec) or None. It is particularly useful in situations where a JSON object is being deserialized and may take these types of forms:

"https://example.com/id/uuid"
["https://example.com/id/uuid1", "https://example.com/id/uuid2"]
null

These would all match to MaybeMultiple as ::Single, ::Multiple, ::None, respectively.

Commit count: 10

cargo fmt