finance-query 2.8.0

A Rust library for querying financial data
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Data models for macro-economic sources (FRED, US Treasury).
//!
//! Re-exports canonical types from `crate::models::economic`.

pub use crate::models::economic::{MacroObservation, MacroSeries, TreasuryYield};

/// A single scheduled economic-data release date from the FRED
/// `releases/dates` endpoint.
#[derive(Debug, Clone)]
pub struct ReleaseDate {
    /// FRED release identifier.
    pub release_id: u64,
    /// Human-readable release name (e.g. "Consumer Price Index").
    pub release_name: String,
    /// Release date as an ISO `YYYY-MM-DD` string.
    pub date: String,
}