Add serde feature to allow for serializing and deserializing different structs #1439
Open
1 of 2 tasks
Labels
feature-request
This issue requets a substantial new feature
Category
User level API features/changes
Describe the feature you'd like to request
I often find myself running
from_str()
on different structs like Entities, EntityTypeNames, and EntityUids. Often these are done from structured data. It would be really cool if there was aserde
feature added to thecedar-policy
crate that allowed for serialization and deserialization.Example:
Being able to deserialize the incoming message directly to an EntityId and EntityTypeName via the serde deserialize trait would be so nice.
Describe alternatives you've considered
At this point I just have to specify the entity_id and entity_type fields as Strings and perform the appropriate from_str() functions.
Additional context
No response
Is this something that you'd be interested in working on?
The text was updated successfully, but these errors were encountered: