pub struct ExecPolicyDecision {
pub allow: bool,
pub requires_approval: bool,
pub requirement: ExecApprovalRequirement,
pub matched_rule: Option<String>,
}Expand description
The result of evaluating a command against the execution policy.
Fields§
§allow: boolWhether the command is allowed to execute.
requires_approval: boolWhether human approval is required before execution.
requirement: ExecApprovalRequirementThe detailed approval requirement, including any proposed amendments.
matched_rule: Option<String>The rule that matched, if any (e.g. a trusted prefix or ask rule label).
Implementations§
Trait Implementations§
Source§impl Clone for ExecPolicyDecision
impl Clone for ExecPolicyDecision
Source§fn clone(&self) -> ExecPolicyDecision
fn clone(&self) -> ExecPolicyDecision
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ExecPolicyDecision
impl Debug for ExecPolicyDecision
Source§impl<'de> Deserialize<'de> for ExecPolicyDecision
impl<'de> Deserialize<'de> for ExecPolicyDecision
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
impl Eq for ExecPolicyDecision
Source§impl PartialEq for ExecPolicyDecision
impl PartialEq for ExecPolicyDecision
Source§fn eq(&self, other: &ExecPolicyDecision) -> bool
fn eq(&self, other: &ExecPolicyDecision) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ExecPolicyDecision
impl Serialize for ExecPolicyDecision
impl StructuralPartialEq for ExecPolicyDecision
Auto Trait Implementations§
impl Freeze for ExecPolicyDecision
impl RefUnwindSafe for ExecPolicyDecision
impl Send for ExecPolicyDecision
impl Sync for ExecPolicyDecision
impl Unpin for ExecPolicyDecision
impl UnsafeUnpin for ExecPolicyDecision
impl UnwindSafe for ExecPolicyDecision
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