pub struct RegulatoryFiling {
pub filing_type: FilingType,
pub company_code: String,
pub jurisdiction: String,
pub period_end: NaiveDate,
pub deadline: NaiveDate,
pub filing_date: Option<NaiveDate>,
pub status: FilingStatus,
pub regulator: String,
pub filing_reference: Option<String>,
}Expand description
A specific regulatory filing instance.
Fields§
§filing_type: FilingTypeFiling type
company_code: StringCompany code
jurisdiction: StringJurisdiction
period_end: NaiveDatePeriod end date
deadline: NaiveDateFiling deadline
filing_date: Option<NaiveDate>Actual filing date (if filed)
status: FilingStatusFiling status
regulator: StringRegulator
filing_reference: Option<String>Electronic filing reference
Implementations§
Source§impl RegulatoryFiling
impl RegulatoryFiling
Sourcepub fn new(
filing_type: FilingType,
company_code: impl Into<String>,
jurisdiction: impl Into<String>,
period_end: NaiveDate,
deadline: NaiveDate,
regulator: impl Into<String>,
) -> Self
pub fn new( filing_type: FilingType, company_code: impl Into<String>, jurisdiction: impl Into<String>, period_end: NaiveDate, deadline: NaiveDate, regulator: impl Into<String>, ) -> Self
Creates a new filing instance.
Sourcepub fn days_to_deadline(&self, from: NaiveDate) -> i64
pub fn days_to_deadline(&self, from: NaiveDate) -> i64
Returns the number of days until/past the deadline from a given date.
Trait Implementations§
Source§impl Clone for RegulatoryFiling
impl Clone for RegulatoryFiling
Source§fn clone(&self) -> RegulatoryFiling
fn clone(&self) -> RegulatoryFiling
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 RegulatoryFiling
impl Debug for RegulatoryFiling
Source§impl<'de> Deserialize<'de> for RegulatoryFiling
impl<'de> Deserialize<'de> for RegulatoryFiling
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
Source§impl Serialize for RegulatoryFiling
impl Serialize for RegulatoryFiling
Source§impl ToNodeProperties for RegulatoryFiling
impl ToNodeProperties for RegulatoryFiling
Source§fn node_type_name(&self) -> &'static str
fn node_type_name(&self) -> &'static str
Entity type name (snake_case), e.g.
"uncertain_tax_position".Source§fn node_type_code(&self) -> u16
fn node_type_code(&self) -> u16
Numeric entity type code for registry, e.g.
416.Source§fn to_node_properties(&self) -> HashMap<String, GraphPropertyValue>
fn to_node_properties(&self) -> HashMap<String, GraphPropertyValue>
Convert all fields to a property map with camelCase keys.
Auto Trait Implementations§
impl Freeze for RegulatoryFiling
impl RefUnwindSafe for RegulatoryFiling
impl Send for RegulatoryFiling
impl Sync for RegulatoryFiling
impl Unpin for RegulatoryFiling
impl UnsafeUnpin for RegulatoryFiling
impl UnwindSafe for RegulatoryFiling
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