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

bson-rust - PR #378: #376 Implemented TryFrom<&str> for ObjectId

    • Type: Icon: Task Task
    • Resolution: Won't Fix
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:

      clarkmcc has created PR #378: #376 Implemented TryFrom<&str> for ObjectId in bson-rust

      Issue Text:
      Fixes #376 and allows for things like this
      ```rust
      fn handle<T>(key: T) where T: TryInto<ObjectId>

      { let id = key.try_into(); }

      handle("000000000000000000000000");
      handle(ObjectId::new());
      ```

            Assignee:
            abraham.egnor@mongodb.com Abraham Egnor
            Reporter:
            dbeng-pm-bot PM Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: