Crates.io | pbbson |
lib.rs | pbbson |
version | 0.1.9 |
created_at | 2025-05-09 15:21:28.209567+00 |
updated_at | 2025-09-06 01:49:01.052771+00 |
description | Utilities for pbjson to BSON conversion |
homepage | https://megalithic.llc |
repository | https://gitlab.com/megalithic-llc/pbbson.git |
max_upload_size | |
id | 1667215 |
size | 11,097,560 |
Utilities for pbjson to BSON conversions.
$ cargo add pbbson
$ make check
use bson::Document;
use pbbson::Model;
let doc: Document = Model::try_from(&message).unwrap().into();
let my_struct: StructType = model.try_into().unwrap();