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

Accept raw documents in driver API

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: None

      We accept non-raw documents in several places in our API, e.g. update_one. However, some users might prefer to use RawDocument instead for the performance/efficiency benefits. We should update our API in 3.0 to accept RawDocuments in place of Documents. Some ways we could do this:

      • Accept anything that implements TryInto<RawDocument>
      • Accept anything that implements Serialize

            Assignee:
            Unassigned Unassigned
            Reporter:
            isabel.atkinson@mongodb.com Isabel Atkinson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: