Skip to content

RUST-1110 bson::to_vec fail to serialize any Serialize #357

Open
@gkorland

Description

@gkorland

When trying to serialize Serialize object using bson::to_vec it gets to update_element_type which returns an error if the top level object is not ElementType::EmbeddedDocument

if matches!(t, ElementType::EmbeddedDocument) {

Is there a reason for this limitation? I tested the code without this check and it works.

Metadata

Metadata

Assignees

Labels

tracked-in-jiraTicket filed in Mongo's Jira system

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions