pub struct ProtectionResult {
pub allowed: bool,
pub applied_protection: ProtectionLevel,
pub validation_results: Vec<ValidationResult>,
pub required_approval_level: Option<ApprovalLevel>,
pub applied_constraints: Vec<String>,
pub recommendations: Vec<String>,
}
Expand description
Protection validation result
Fields§
§allowed: bool
Whether the edit is allowed
applied_protection: ProtectionLevel
Protection level that was applied
validation_results: Vec<ValidationResult>
Validation results from all checks
required_approval_level: Option<ApprovalLevel>
Required approval level if elevated approval needed
applied_constraints: Vec<String>
Applied constraints
recommendations: Vec<String>
Recommendations for compliance
Trait Implementations§
Source§impl Clone for ProtectionResult
impl Clone for ProtectionResult
Source§fn clone(&self) -> ProtectionResult
fn clone(&self) -> ProtectionResult
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 moreAuto Trait Implementations§
impl Freeze for ProtectionResult
impl RefUnwindSafe for ProtectionResult
impl Send for ProtectionResult
impl Sync for ProtectionResult
impl Unpin for ProtectionResult
impl UnwindSafe for ProtectionResult
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