pub struct ActionValidation {
pub allowed: bool,
pub risk_level: RiskLevel,
pub reason: Option<String>,
pub requires_approval: bool,
}Expand description
Action validation result
Fields§
§allowed: bool§risk_level: RiskLevel§reason: Option<String>§requires_approval: boolImplementations§
Trait Implementations§
Source§impl Clone for ActionValidation
impl Clone for ActionValidation
Source§fn clone(&self) -> ActionValidation
fn clone(&self) -> ActionValidation
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 ActionValidation
impl RefUnwindSafe for ActionValidation
impl Send for ActionValidation
impl Sync for ActionValidation
impl Unpin for ActionValidation
impl UnsafeUnpin for ActionValidation
impl UnwindSafe for ActionValidation
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