-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: gustavo-shigueo <[email protected]>
- Loading branch information
1 parent
68f2f22
commit e268437
Showing
5 changed files
with
27 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#![cfg(feature = "bson-uuid-impl")] | ||
|
||
use bson::{oid::ObjectId, Uuid}; | ||
use ts_rs::TS; | ||
|
||
#[derive(TS)] | ||
#[ts(export, export_to = "bson/")] | ||
struct User { | ||
_id: ObjectId, | ||
_uuid: Uuid, | ||
} | ||
|
||
#[test] | ||
fn bson() { | ||
assert_eq!(User::decl(), "type User = { _id: string, _uuid: string, };") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
|
||
mod arrays; | ||
mod bound; | ||
mod bson; | ||
mod chrono; | ||
mod concrete_generic; | ||
mod docs; | ||
|