| Crates.io | finance-query-derive |
| lib.rs | finance-query-derive |
| version | 2.1.0 |
| created_at | 2025-12-31 00:03:36.507382+00 |
| updated_at | 2026-01-12 23:04:23.569601+00 |
| description | Derive macros for finance-query library |
| homepage | https://github.com/Verdenroz/finance-query |
| repository | https://github.com/Verdenroz/finance-query |
| max_upload_size | |
| id | 2013654 |
| size | 16,244 |
Procedural macros for the finance-query library.
This crate is not meant to be used directly. Enable the dataframe feature in finance-query:
[dependencies]
finance-query = { version = "2.0", features = ["dataframe"] }
ToDataFrame derive macro for converting structs to Polars DataFrames:
use finance_query::ToDataFrame;
#[derive(ToDataFrame)]
struct Quote {
symbol: String,
price: Option<f64>,
volume: Option<i64>,
}
let quote = Quote { symbol: "AAPL".into(), price: Some(150.0), volume: Some(1000000) };
let df = quote.to_dataframe()?;
MIT