Uploaded image for project: 'Rust Driver'
  1. Rust Driver
  2. RUST-434

Rewrite ReadConcern as a struct

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 0.11.0
    • Affects Version/s: None
    • Component/s: None
    • None

      Currently, ReadConcern is implemented as an enum. The spec explicitly defines it as an object with a single level field, however. This might be so that future fields could be added to ReadConcern in addition to level, similar to how WriteConcern has several fields.

      As implemented, adding any new fields would be a breaking change to the driver's enum based implementation, but if it were implemented as a struct, doing so would not be.

            Assignee:
            patrick.freed@mongodb.com Patrick Freed
            Reporter:
            patrick.freed@mongodb.com Patrick Freed
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: