pub struct PermitPolicyV1 { /* private fields */ }Implementations§
Source§impl PermitPolicyV1
impl PermitPolicyV1
pub fn with_permit(self, permit: &PermitV1) -> Self
pub fn with_grant(self, grant: PermitGrantV1) -> Self
pub fn decision_for_risk( &self, risk: &CanonicalToolSideEffectClass, ) -> PermitDecisionV1
pub fn decision_for_context( &self, context: &PermitCheckContextV1, ) -> PermitDecisionV1
pub fn grant_for_risk( &self, risk: &CanonicalToolSideEffectClass, ) -> Option<&PermitGrantV1>
pub fn grant_for_context( &self, context: &PermitCheckContextV1, ) -> Option<&PermitGrantV1>
pub fn permit_use_receipt_for_context( &self, context: &PermitCheckContextV1, ) -> Option<PermitUseReportV1>
pub fn approval_request_for_tool( &self, tool_id: impl Into<String>, risk: CanonicalToolSideEffectClass, scope: impl Into<String>, ) -> Option<ApprovalRequestV1>
pub fn approval_request_for_context( &self, context: &PermitCheckContextV1, ) -> Option<ApprovalRequestV1>
pub fn deny_request( &self, request_id: ArtifactId, decided_by: impl Into<String>, reason: impl Into<String>, ) -> ApprovalDecisionV1
Trait Implementations§
Source§impl Clone for PermitPolicyV1
impl Clone for PermitPolicyV1
Source§fn clone(&self) -> PermitPolicyV1
fn clone(&self) -> PermitPolicyV1
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 PermitPolicyV1
impl Debug for PermitPolicyV1
Source§impl Default for PermitPolicyV1
impl Default for PermitPolicyV1
Source§fn default() -> PermitPolicyV1
fn default() -> PermitPolicyV1
Returns the “default value” for a type. Read more
impl Eq for PermitPolicyV1
Source§impl PartialEq for PermitPolicyV1
impl PartialEq for PermitPolicyV1
Source§fn eq(&self, other: &PermitPolicyV1) -> bool
fn eq(&self, other: &PermitPolicyV1) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PermitPolicyV1
Auto Trait Implementations§
impl Freeze for PermitPolicyV1
impl RefUnwindSafe for PermitPolicyV1
impl Send for PermitPolicyV1
impl Sync for PermitPolicyV1
impl Unpin for PermitPolicyV1
impl UnsafeUnpin for PermitPolicyV1
impl UnwindSafe for PermitPolicyV1
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