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

Audit action options for convenience conversion

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 3.0.0
    • Affects Version/s: 3.0.0
    • Component/s: None
    • None
    • Rust Drivers

      Most action options we want to accept as simple values; however, for some cases (String, Vec<T>) we want to accept convertible types for ergonomics (impl Into<String>, impl IntoIterator<T>). Before releasing 3.0 we should go through the various actions and change the setters for options with those types to the conversion.

      Side note: it seems like this should be possible to handle directly in the macro - have matchers for the specific types - but that runs into this restriction

            Assignee:
            abraham.egnor@mongodb.com Abraham Egnor
            Reporter:
            abraham.egnor@mongodb.com Abraham Egnor
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: