pub enum ExecApprovalRequirement {
Skip {
bypass_sandbox: bool,
proposed_execpolicy_amendment: Option<ExecPolicyAmendment>,
},
NeedsApproval {
reason: String,
proposed_execpolicy_amendment: Option<ExecPolicyAmendment>,
proposed_network_policy_amendments: Vec<NetworkPolicyAmendment>,
},
Forbidden {
reason: String,
},
}Expand description
The approval requirement determined by the execution policy engine.
Variants§
Skip
Execution is allowed without approval.
Fields
§
proposed_execpolicy_amendment: Option<ExecPolicyAmendment>Optional proposed policy amendment (e.g., to persist the allowed prefix).
NeedsApproval
Execution is allowed but requires human approval first.
Fields
§
proposed_execpolicy_amendment: Option<ExecPolicyAmendment>Optional proposed policy amendment that would be applied on approval.
§
proposed_network_policy_amendments: Vec<NetworkPolicyAmendment>Proposed network policy amendments that would be applied on approval.
Forbidden
Execution is forbidden by policy.
Implementations§
Trait Implementations§
Source§impl Clone for ExecApprovalRequirement
impl Clone for ExecApprovalRequirement
Source§fn clone(&self) -> ExecApprovalRequirement
fn clone(&self) -> ExecApprovalRequirement
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 ExecApprovalRequirement
impl Debug for ExecApprovalRequirement
Source§impl<'de> Deserialize<'de> for ExecApprovalRequirement
impl<'de> Deserialize<'de> for ExecApprovalRequirement
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 ExecApprovalRequirement
Source§impl PartialEq for ExecApprovalRequirement
impl PartialEq for ExecApprovalRequirement
Source§fn eq(&self, other: &ExecApprovalRequirement) -> bool
fn eq(&self, other: &ExecApprovalRequirement) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ExecApprovalRequirement
impl Serialize for ExecApprovalRequirement
impl StructuralPartialEq for ExecApprovalRequirement
Auto Trait Implementations§
impl Freeze for ExecApprovalRequirement
impl RefUnwindSafe for ExecApprovalRequirement
impl Send for ExecApprovalRequirement
impl Sync for ExecApprovalRequirement
impl Unpin for ExecApprovalRequirement
impl UnsafeUnpin for ExecApprovalRequirement
impl UnwindSafe for ExecApprovalRequirement
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