pub struct ApprovalPolicy {
pub risk_thresholds: RiskThresholds,
pub file_patterns: Vec<FileApprovalRule>,
pub change_type_rules: Vec<ChangeTypeRule>,
pub delegation_rules: DelegationRules,
}
Expand description
Policy engine for determining required approval levels
Fields§
§risk_thresholds: RiskThresholds
§file_patterns: Vec<FileApprovalRule>
§change_type_rules: Vec<ChangeTypeRule>
§delegation_rules: DelegationRules
Trait Implementations§
Source§impl Clone for ApprovalPolicy
impl Clone for ApprovalPolicy
Source§fn clone(&self) -> ApprovalPolicy
fn clone(&self) -> ApprovalPolicy
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 ApprovalPolicy
impl Debug for ApprovalPolicy
Auto Trait Implementations§
impl Freeze for ApprovalPolicy
impl RefUnwindSafe for ApprovalPolicy
impl Send for ApprovalPolicy
impl Sync for ApprovalPolicy
impl Unpin for ApprovalPolicy
impl UnwindSafe for ApprovalPolicy
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