#[non_exhaustive]pub struct EdgarFiling {
pub accession_number: String,
pub filing_date: String,
pub report_date: String,
pub acceptance_date_time: String,
pub form: String,
pub size: u64,
pub is_xbrl: bool,
pub is_inline_xbrl: bool,
pub primary_document: String,
pub primary_doc_description: String,
}Expand description
A single SEC filing with metadata.
Derived from the parallel arrays in EdgarFilingRecent via
to_filings().
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.accession_number: StringAccession number (unique filing identifier, e.g., “0000320193-24-000123”)
filing_date: StringFiling date (YYYY-MM-DD)
report_date: StringReport date (YYYY-MM-DD)
acceptance_date_time: StringAcceptance date-time
form: StringForm type (e.g., “10-K”, “10-Q”, “8-K”)
size: u64Filing size in bytes
is_xbrl: boolWhether the filing contains XBRL data
is_inline_xbrl: boolWhether the filing contains Inline XBRL data
primary_document: StringPrimary document filename
primary_doc_description: StringPrimary document description
Implementations§
Source§impl EdgarFiling
impl EdgarFiling
Sourcepub fn to_dataframe(&self) -> PolarsResult<DataFrame>
pub fn to_dataframe(&self) -> PolarsResult<DataFrame>
Converts this struct to a single-row polars DataFrame.
All scalar fields are included as columns. Nested objects and complex types are excluded.
This method is auto-generated by the ToDataFrame derive macro.
Sourcepub fn vec_to_dataframe(items: &[Self]) -> PolarsResult<DataFrame>
pub fn vec_to_dataframe(items: &[Self]) -> PolarsResult<DataFrame>
Converts a slice of structs to a multi-row polars DataFrame.
All scalar fields are included as columns. Nested objects and complex types are excluded.
This method is auto-generated by the ToDataFrame derive macro.
Source§impl EdgarFiling
impl EdgarFiling
Sourcepub fn new(
accession_number: String,
filing_date: String,
report_date: String,
acceptance_date_time: String,
form: String,
size: u64,
is_xbrl: bool,
is_inline_xbrl: bool,
primary_document: String,
primary_doc_description: String,
) -> Self
pub fn new( accession_number: String, filing_date: String, report_date: String, acceptance_date_time: String, form: String, size: u64, is_xbrl: bool, is_inline_xbrl: bool, primary_document: String, primary_doc_description: String, ) -> Self
Create a new EdgarFiling instance.
This constructor is provided to support creating EdgarFiling instances outside
the library crate, since the struct is marked #[non_exhaustive].
Sourcepub fn edgar_url(&self) -> String
pub fn edgar_url(&self) -> String
Get the URL to view this filing on SEC EDGAR.
§Example
use finance_query::edgar;
edgar::init("user@example.com")?;
let cik = edgar::resolve_cik("AAPL").await?;
let submissions = edgar::submissions(cik).await?;
if let Some(filings) = &submissions.filings {
if let Some(recent) = &filings.recent {
for filing in recent.to_filings() {
let url = filing.edgar_url();
println!("Filing URL: {}", url);
}
}
}Trait Implementations§
Source§impl Clone for EdgarFiling
impl Clone for EdgarFiling
Source§fn clone(&self) -> EdgarFiling
fn clone(&self) -> EdgarFiling
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EdgarFiling
impl Debug for EdgarFiling
Source§impl<'de> Deserialize<'de> for EdgarFiling
impl<'de> Deserialize<'de> for EdgarFiling
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for EdgarFiling
impl RefUnwindSafe for EdgarFiling
impl Send for EdgarFiling
impl Sync for EdgarFiling
impl Unpin for EdgarFiling
impl UnsafeUnpin for EdgarFiling
impl UnwindSafe for EdgarFiling
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more