#[non_exhaustive]pub struct EdgarFilingRecent {
pub accession_number: Vec<String>,
pub filing_date: Vec<String>,
pub report_date: Vec<String>,
pub acceptance_date_time: Vec<String>,
pub form: Vec<String>,
pub size: Vec<u64>,
pub is_xbrl: Vec<u8>,
pub is_inline_xbrl: Vec<u8>,
pub primary_document: Vec<String>,
pub primary_doc_description: Vec<String>,
}Expand description
Recent filings data stored as parallel arrays.
EDGAR returns filing data as parallel arrays (each field is a Vec of the same length).
Use to_filings() to convert to a Vec<EdgarFiling>.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.accession_number: Vec<String>Accession numbers (unique filing identifiers)
filing_date: Vec<String>Filing dates (YYYY-MM-DD)
report_date: Vec<String>Report dates (YYYY-MM-DD, may be empty for some form types)
acceptance_date_time: Vec<String>Acceptance date-times
form: Vec<String>Form types (10-K, 10-Q, 8-K, etc.)
size: Vec<u64>Filing sizes in bytes
is_xbrl: Vec<u8>Whether the filing is XBRL
is_inline_xbrl: Vec<u8>Whether the filing is Inline XBRL
primary_document: Vec<String>Primary document filenames
primary_doc_description: Vec<String>Primary document descriptions
Implementations§
Source§impl EdgarFilingRecent
impl EdgarFilingRecent
Sourcepub fn to_filings(&self) -> Vec<EdgarFiling>
pub fn to_filings(&self) -> Vec<EdgarFiling>
Convert parallel arrays into a vector of individual filings.
§Example
if let Some(filings) = &submissions.filings {
if let Some(recent) = &filings.recent {
for filing in recent.to_filings() {
println!("{}: {} ({})", filing.filing_date, filing.form, filing.primary_doc_description);
}
}
}Sourcepub fn to_dataframe(&self) -> PolarsResult<DataFrame>
pub fn to_dataframe(&self) -> PolarsResult<DataFrame>
Convert filings to a polars DataFrame (requires dataframe feature).
§Example
if let Some(filings) = &submissions.filings {
if let Some(recent) = &filings.recent {
let df = recent.to_dataframe()?;
println!("Filings DataFrame: {:?}", df);
}
}Trait Implementations§
Source§impl Clone for EdgarFilingRecent
impl Clone for EdgarFilingRecent
Source§fn clone(&self) -> EdgarFilingRecent
fn clone(&self) -> EdgarFilingRecent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EdgarFilingRecent
impl Debug for EdgarFilingRecent
Source§impl<'de> Deserialize<'de> for EdgarFilingRecent
impl<'de> Deserialize<'de> for EdgarFilingRecent
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for EdgarFilingRecent
impl RefUnwindSafe for EdgarFilingRecent
impl Send for EdgarFilingRecent
impl Sync for EdgarFilingRecent
impl Unpin for EdgarFilingRecent
impl UnsafeUnpin for EdgarFilingRecent
impl UnwindSafe for EdgarFilingRecent
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
Mutably borrows from an owned value. Read more
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> ⓘ
Converts
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> ⓘ
Converts
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