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

Label BSON error enum cases

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

      Currently, each of the BSON library's error's enum cases' associated values are unlabeled, which makes it hard to determine what the values mean without looking at the Display implementation or reading the docstrings. In the driver, we label all associated values unless they're just being wrapped directly. We should consider a similar convention for the BSON library.

      This would be a breaking change, so it would be need to done before 1.0.

            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: