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

RUST-1891 Implement Default on results structs #1289

Merged
merged 2 commits into from
Jan 24, 2025

Conversation

isabelatkinson
Copy link
Contributor

RUST-1891

Implements Default on the types contained in the results module. I don't think there's anything of value to test here.

@isabelatkinson isabelatkinson changed the title RUST-1891 Implement Default on results structs RUST-1891 Implement Default on results structs Jan 23, 2025
#[serde(rename_all = "camelCase")]
#[non_exhaustive]
pub enum CollectionType {
/// Indicates that the data store is a view.
View,

/// Indicates that the data store is a collection.
#[default]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this felt like a reasonable default; don't think the choice here is that critical, though, since these impls are for mocking

@isabelatkinson isabelatkinson marked this pull request as ready for review January 23, 2025 21:06
@isabelatkinson isabelatkinson merged commit 8d13fb2 into mongodb:main Jan 24, 2025
13 of 17 checks passed
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

Successfully merging this pull request may close these issues.

2 participants