-
-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Labels
designDesign considerationsDesign considerations
Description
Similar to serde it should be possible to serializer and deserialize enums with structs in them. There are two cases to cover:
Newtype pattern:
struct A {
a: bool
}
struct B {
b: bool
}
enum Foo {
A(A),
B(B),
}Embedded struct variant pattern:
enum Foo {
A { a: bool },
B { b: bool },
}Either of them should likely work the same. This issue relates to the question of buffering and state (#20).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
designDesign considerationsDesign considerations