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

Collection helpers return Collection<T>

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.0.0-alpha.1
    • Affects Version/s: None
    • Component/s: None
    • None

      In order to ease and encourage the usage of serde models in the driver, Database::collection and Database::collection_with_options will be updated to return Collection<T> instead of Collection<Document>.

      This is a breaking change for users of Collection<Document> which will require them to manually specify the generic type.

      As part of this change, the default generic type of Collection will be removed.

            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: