Crates.io | pbbson |
lib.rs | pbbson |
version | 0.1.8 |
created_at | 2025-05-09 15:21:28.209567+00 |
updated_at | 2025-08-16 20:37:48.553466+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 | 10,902,730 |
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();