oknozor / musicbrainz_rs

A wrapper around the musicbrainz API
MIT License
38 stars 18 forks source link

Improve query builder generated function by adding doc #66

Open oknozor opened 3 years ago

oknozor commented 3 years ago

When declaring a struct dedicated to search queries all field are private, therefor the field documentation is not picked by cargo doc : image

We need to modify the derive macro generating the builder so it grab the field documentation and add it to the builder method :

image

This shall be done in lucene_query_builder macro_derive implementation.