Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serializing structs as maps #3

Closed
Sir-NoChill opened this issue Mar 15, 2024 · 1 comment
Closed

Serializing structs as maps #3

Sir-NoChill opened this issue Mar 15, 2024 · 1 comment

Comments

@Sir-NoChill
Copy link
Owner

Problems serializing structs. Current behaviour:

[
  0x20,
  {
    "file:",
    true,
    true,
  }
]

Expected to serialize with field names:

[
	32,
	{
		"scheme": "customfs",
		"has_hierarchical_uris": true,
		"is_globbable": true
	}
]

Unsure of how to do so.

@Sir-NoChill
Copy link
Owner Author

Figured it out. Needed to add the .with_struct_map() trait to the serializer function. See the next PR. Will link.

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

No branches or pull requests

1 participant