pub struct RegulationGenerator { /* private fields */ }Expand description
Generator that produces compliance regulation output data from the registry.
Implementations§
Source§impl RegulationGenerator
impl RegulationGenerator
Sourcepub fn with_registry(registry: StandardRegistry) -> Self
pub fn with_registry(registry: StandardRegistry) -> Self
Creates a generator with a custom registry.
Sourcepub fn registry(&self) -> &StandardRegistry
pub fn registry(&self) -> &StandardRegistry
Returns a reference to the underlying registry.
Sourcepub fn generate_standard_records(
&self,
jurisdictions: &[String],
reference_date: NaiveDate,
) -> Vec<ComplianceStandardRecord>
pub fn generate_standard_records( &self, jurisdictions: &[String], reference_date: NaiveDate, ) -> Vec<ComplianceStandardRecord>
Generates standard records for a set of jurisdictions at a reference date.
Sourcepub fn generate_cross_reference_records(&self) -> Vec<CrossReferenceRecord>
pub fn generate_cross_reference_records(&self) -> Vec<CrossReferenceRecord>
Generates cross-reference records.
Sourcepub fn generate_jurisdiction_records(
&self,
jurisdictions: &[String],
reference_date: NaiveDate,
) -> Vec<JurisdictionRecord>
pub fn generate_jurisdiction_records( &self, jurisdictions: &[String], reference_date: NaiveDate, ) -> Vec<JurisdictionRecord>
Generates jurisdiction profile records.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RegulationGenerator
impl RefUnwindSafe for RegulationGenerator
impl Send for RegulationGenerator
impl Sync for RegulationGenerator
impl Unpin for RegulationGenerator
impl UnsafeUnpin for RegulationGenerator
impl UnwindSafe for RegulationGenerator
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> 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<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.