Replace Command generic type T with RawDocumentBuf

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Unknown
    • 3.0.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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
            Reporter:
            Isabel Atkinson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: