typesense / typesense-rust

Rust client for Typesense | Work In Progress & Help Wanted
Apache License 2.0
32 stars 12 forks source link

Proc macro `typesense_derive` #35

Closed RoDmitry closed 8 months ago

RoDmitry commented 8 months ago

Change Summary

Proc macro in typesense_derive was updated to support this:

#[typesense(
    collection_name = "companies",
    default_sorting_field = "num_employees",
    enable_nested_fields = true
)]

instead of this:

#[typesense(default_sorting_field = "num_employees")]
#[typesense(collection_name = "companies")]