Skip to main content

Module format

Module format 

Source
Expand description

Compile-time format type parameters for Quote and other FormattedValue-bearing structs.

MarkerF::Value<f64>Access pattern
format::BothFormattedValue<f64>.raw / .fmt / .long_fmt
format::Rawf64direct (no unwrapping)
format::PrettyStringhuman-readable string
use finance_query::{format, Ticker};
let ticker = Ticker::new("AAPL").await?;
let quote: finance_query::Quote<format::Raw> = ticker.quote().await?;

Structsยง

Both
Full format โ€” fields hold FormattedValue<T> with raw, fmt, and long_fmt.
Pretty
Pretty format โ€” fields hold an Option<String> with the human-readable representation.
Raw
Raw format โ€” fields hold T directly (e.g. f64, i64). This is the default.