pub struct ProcessAutomationConfig {
pub process_name: String,
pub manual_rate_before: f64,
pub manual_rate_after: f64,
pub error_rate_before: f64,
pub error_rate_after: f64,
pub processing_time_reduction: f64,
pub rollout_months: u32,
pub rollout_curve: RolloutCurve,
pub affected_transaction_types: Vec<String>,
}Expand description
Configuration for process automation.
Fields§
§process_name: StringName of the process being automated.
manual_rate_before: f64Manual processing rate before automation (0.0 to 1.0).
manual_rate_after: f64Manual processing rate after automation (0.0 to 1.0).
error_rate_before: f64Error rate before automation.
error_rate_after: f64Error rate after automation.
processing_time_reduction: f64Processing time reduction factor (e.g., 0.3 = 70% faster).
rollout_months: u32Number of months for rollout.
rollout_curve: RolloutCurveAutomation rollout curve type.
affected_transaction_types: Vec<String>Affected transaction types.
Implementations§
Source§impl ProcessAutomationConfig
impl ProcessAutomationConfig
Sourcepub fn automation_rate_at_progress(&self, progress: f64) -> f64
pub fn automation_rate_at_progress(&self, progress: f64) -> f64
Calculate automation rate at a given point in rollout (0.0 to 1.0 progress).
Sourcepub fn error_rate_at_progress(&self, progress: f64) -> f64
pub fn error_rate_at_progress(&self, progress: f64) -> f64
Calculate error rate at a given point in rollout.
Trait Implementations§
Source§impl Clone for ProcessAutomationConfig
impl Clone for ProcessAutomationConfig
Source§fn clone(&self) -> ProcessAutomationConfig
fn clone(&self) -> ProcessAutomationConfig
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 ProcessAutomationConfig
impl Debug for ProcessAutomationConfig
Source§impl Default for ProcessAutomationConfig
impl Default for ProcessAutomationConfig
Source§impl<'de> Deserialize<'de> for ProcessAutomationConfig
impl<'de> Deserialize<'de> for ProcessAutomationConfig
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 ProcessAutomationConfig
impl RefUnwindSafe for ProcessAutomationConfig
impl Send for ProcessAutomationConfig
impl Sync for ProcessAutomationConfig
impl Unpin for ProcessAutomationConfig
impl UnwindSafe for ProcessAutomationConfig
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