pbbson 0.1.2

Utilities for pbjson to BSON conversion
# pbbson-rs

Utilities for [pbjson](https://crates.io/crates/pbjson-types) to [BSON](https://crates.io/crates/bson) conversions.

[![License](http://img.shields.io/badge/Licence-MIT-blue.svg)](LICENSE)
[![Arch](https://img.shields.io/badge/Arch-aarch64%20|%20amd64%20|%20armv7-blue.svg)]()

## Installing

```shell
$ cargo add pbbson
```

## Testing

```shell
$ make check
```

## Using

### Convert a Prost Protobuf message into a BSON Document

```rust
use bson::Document;
use pbbson::Model;

let doc: Document = Model::try_from(&message).unwrap().into();
```

### Convert a BSON Document into a Prost Protobuf message 

```rust
let my_struct: StructType = model.try_into().unwrap();
```