Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a macro to define document simply. #6

Closed
fulmicoton opened this issue Aug 16, 2016 · 2 comments
Closed

Add a macro to define document simply. #6

fulmicoton opened this issue Aug 16, 2016 · 2 comments

Comments

@fulmicoton
Copy link
Collaborator

This would be handy for unit tests for instance.

Maybe something like :

doc!( field1=>"toto", field2=>5, )

Value implements From<String> and From<u32> so that should be feasible.

@White-Oak
Copy link
Contributor

On a side note: should document.add return a Result, returning an error, when there is already a field with such a field accessor in Document?

@fulmicoton
Copy link
Collaborator Author

No.

Fields are not unique.

Le 12 oct. 2016 4:53 PM, "Oak" notifications@github.com a écrit :

On a side note: should document.add return a Result, returning an error,
when there is already a field with such a field accessor in Document?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#6 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA-WQtky4X88nYG_0oai-oDEl7INW8lWks5qzJHzgaJpZM4Jk64l
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants