-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Summary
Hey, and sorry for bothering you again @taladar.
The serialization and deserialization implementatitons on DistinguishedName weren't quite what I expected.
Expectation
I expected that DistinguishedName would deserialize from the usual string DN representation like "OU=Unit,DC=test,DC=example,DC=org", and also serialize into one.
Actual behavior
Trying to deserialize a string DN will result an error:
invalid type: string "OU=Unit,DC=test,DC=example,DC=org", expected struct DistinguishedName
The derived implementation treats DistinguishedName as a struct with one list type field (which it is).
Solution
Is this behavior intentional? Could we add serde implementations for the familiar string DNs?
Metadata
Metadata
Assignees
Labels
No labels