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

Rename ServerApiVersion variants to V1, V2, etc.

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 2.0.0-beta.2
    • Affects Version/s: None
    • Component/s: None
    • Labels:

      The versioned API spec defines the various enum cases for the API versions as v1, while we name it Version1. This leads to a somewhat verbose invocation of ServerApiVersion::Version1. We should update our variant to match that of the specification, namely V1, for consistency with other drivers and brevity.

      Note: the std library uses a similar naming convention for IP addresses: https://doc.rust-lang.org/std/net/enum.IpAddr.html#variants

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

              Created:
              Updated:
              Resolved: