(
operation: GuardOperation,
reason: GuardRefusalReason,
drift_fields: Vec<DriftField>,
old: Option<GuardEvidence>,
current: &GuardEvidence,
)
| 829 | } |
| 830 | |
| 831 | fn refuse( |
| 832 | operation: GuardOperation, |
| 833 | reason: GuardRefusalReason, |
| 834 | drift_fields: Vec<DriftField>, |
| 835 | old: Option<GuardEvidence>, |
| 836 | current: &GuardEvidence, |
| 837 | ) -> GuardOutcome { |
| 838 | let remediation = remediation(reason, old.as_ref(), current); |
| 839 | GuardOutcome::Refuse(Box::new(GuardRefusal { |
| 840 | operation, |
| 841 | reason, |
| 842 | drift_fields, |
| 843 | old, |
| 844 | current: current.clone(), |
| 845 | remediation, |
| 846 | recovery: None, |
| 847 | })) |
| 848 | } |
| 849 | |
| 850 | fn remediation( |
| 851 | reason: GuardRefusalReason, |
no test coverage detected