pub struct ControlMappingRegistry {
pub account_mappings: Vec<ControlAccountMapping>,
pub process_mappings: Vec<ControlProcessMapping>,
pub threshold_mappings: Vec<ControlThresholdMapping>,
pub doc_type_mappings: Vec<ControlDocTypeMapping>,
}Expand description
Master registry of all control mappings.
Fields§
§account_mappings: Vec<ControlAccountMapping>Control-to-account mappings
process_mappings: Vec<ControlProcessMapping>Control-to-process mappings
threshold_mappings: Vec<ControlThresholdMapping>Control-to-threshold mappings
doc_type_mappings: Vec<ControlDocTypeMapping>Control-to-document type mappings
Implementations§
Source§impl ControlMappingRegistry
impl ControlMappingRegistry
Sourcepub fn get_applicable_controls(
&self,
account_number: &str,
account_sub_type: Option<&AccountSubType>,
process: Option<&BusinessProcess>,
amount: Decimal,
doc_type: Option<&str>,
) -> Vec<String>
pub fn get_applicable_controls( &self, account_number: &str, account_sub_type: Option<&AccountSubType>, process: Option<&BusinessProcess>, amount: Decimal, doc_type: Option<&str>, ) -> Vec<String>
Get all control IDs that apply to a transaction.
Trait Implementations§
Source§impl Clone for ControlMappingRegistry
impl Clone for ControlMappingRegistry
Source§fn clone(&self) -> ControlMappingRegistry
fn clone(&self) -> ControlMappingRegistry
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 ControlMappingRegistry
impl Debug for ControlMappingRegistry
Source§impl Default for ControlMappingRegistry
impl Default for ControlMappingRegistry
Source§fn default() -> ControlMappingRegistry
fn default() -> ControlMappingRegistry
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ControlMappingRegistry
impl<'de> Deserialize<'de> for ControlMappingRegistry
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 ControlMappingRegistry
impl RefUnwindSafe for ControlMappingRegistry
impl Send for ControlMappingRegistry
impl Sync for ControlMappingRegistry
impl Unpin for ControlMappingRegistry
impl UnwindSafe for ControlMappingRegistry
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