Macro impl_filter_builder

Source
macro_rules! impl_filter_builder {
    () => { ... };
}
Expand description

Macro to implement standard filter builder methods for OpenFIGI API request builders.

This macro generates a set of common filter methods (e.g., .exch_code(), .currency(), etc.) for builder structs that expose a filters_mut() method. It is used to reduce boilerplate and ensure consistency across all filterable request builders, both for endpoint and model/request types.

ยงUsage

Add a filters_mut(&mut self) -> &mut RequestFilters method to your builder struct, then invoke impl_filter_builder!(); inside the impl block. The macro will generate all standard filter methods, each delegating to the filters_mut() helper.