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

Replace Command generic type T with RawDocumentBuf

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

      Our internal Command type uses a generic type T for the body of the command. This theoretically allows us to use structs to model the shape of specific commands, but in practice we use either Document or RawDocumentBuf for T for the majority of our operations. We should remove the generic type and instead use RawDocumentBuf across the board to simplify the implementation of the Command type. See this comment for more context: https://github.com/mongodb/mongo-rust-driver/pull/1009#discussion_r1457685402

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

              Created:
              Updated:
              Resolved: