finance_query/models/corporate/earnings_transcript.rs
1//! Earnings-call transcript, provider-neutral shape.
2//!
3//! Served through the [`Capability::CORPORATE`](crate::Capability::CORPORATE)
4//! route. Distinct from the richer, Yahoo-only [`Transcript`](crate::Transcript)
5//! returned by [`finance::earnings_transcript`](crate::finance::earnings_transcript) —
6//! that one stays a Yahoo-pinned shortcut with its own model; this one is the
7//! flat, cross-provider shape every routed provider maps into.
8
9use serde::{Deserialize, Serialize};
10
11/// One earnings call transcript.
12#[derive(Debug, Clone, Default, Serialize, Deserialize)]
13#[non_exhaustive]
14pub struct EarningsTranscript {
15 /// Ticker symbol.
16 pub symbol: Option<String>,
17 /// Fiscal quarter (e.g. `"Q4"`).
18 pub quarter: Option<String>,
19 /// Fiscal year.
20 pub year: Option<i32>,
21 /// Call date (`YYYY-MM-DD`), when the provider reports one.
22 pub date: Option<String>,
23 /// Full transcript text.
24 pub text: String,
25}