How to use custom binary with bson ?

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: BSON
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Unable to find source-code formatter for language: rust. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      struct Foo {
      #[serde(with = "serde_bytes")]
         raw: Vec<u8>,
      }
      

      Hi! I would like to stock binary raw ethernet packets, currently use serde_bytes but it looks like base 64 encoded. Can I avoid it and use custom u8 ?

      https://docs.rs/bson/0.14.0/bson/spec/enum.BinarySubtype.html

            Assignee:
            Samuel Rossi (Inactive)
            Reporter:
            Monochrome L.
            None
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: