pub struct ApprovalConfig {
pub enabled: bool,
pub auto_approve_threshold: f64,
pub rejection_rate: f64,
pub revision_rate: f64,
pub average_approval_delay_hours: f64,
pub thresholds: Vec<ApprovalThresholdConfig>,
}Expand description
Approval workflow configuration.
Fields§
§enabled: boolEnable approval workflow generation
auto_approve_threshold: f64Threshold below which transactions are auto-approved
rejection_rate: f64Rate at which approvals are rejected (0.0 to 1.0)
revision_rate: f64Rate at which approvals require revision (0.0 to 1.0)
average_approval_delay_hours: f64Average delay in hours for approval processing
thresholds: Vec<ApprovalThresholdConfig>Approval chain thresholds
Trait Implementations§
Source§impl Clone for ApprovalConfig
impl Clone for ApprovalConfig
Source§fn clone(&self) -> ApprovalConfig
fn clone(&self) -> ApprovalConfig
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 ApprovalConfig
impl Debug for ApprovalConfig
Source§impl Default for ApprovalConfig
impl Default for ApprovalConfig
Source§impl<'de> Deserialize<'de> for ApprovalConfig
impl<'de> Deserialize<'de> for ApprovalConfig
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 ApprovalConfig
impl RefUnwindSafe for ApprovalConfig
impl Send for ApprovalConfig
impl Sync for ApprovalConfig
impl Unpin for ApprovalConfig
impl UnwindSafe for ApprovalConfig
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