pub struct ToolExecutionPermit { /* private fields */ }Implementations§
Source§impl ToolExecutionPermit
impl ToolExecutionPermit
Sourcepub fn new(
execution_permit_id: ExecutionPermitId,
decision_id: PolicyDecisionId,
approval_record_id: Option<ApprovalRecordId>,
namespace: impl Into<String>,
target_key: impl Into<String>,
) -> Self
pub fn new( execution_permit_id: ExecutionPermitId, decision_id: PolicyDecisionId, approval_record_id: Option<ApprovalRecordId>, namespace: impl Into<String>, target_key: impl Into<String>, ) -> Self
Builds a runtime execution permit snapshot for effectful tool dispatch.
Sourcepub fn execution_permit_id(&self) -> &ExecutionPermitId
pub fn execution_permit_id(&self) -> &ExecutionPermitId
Returns the execution permit identifier.
Sourcepub fn decision_id(&self) -> &PolicyDecisionId
pub fn decision_id(&self) -> &PolicyDecisionId
Returns the policy decision lineage bound to this permit.
Sourcepub fn approval_record_id(&self) -> Option<&ApprovalRecordId>
pub fn approval_record_id(&self) -> Option<&ApprovalRecordId>
Returns the optional approval-record lineage bound to this permit.
Sourcepub fn scope(&self) -> &ToolExecutionPermitScope
pub fn scope(&self) -> &ToolExecutionPermitScope
Returns the namespace/target scope enforced by this permit.
Trait Implementations§
Source§impl Clone for ToolExecutionPermit
impl Clone for ToolExecutionPermit
Source§fn clone(&self) -> ToolExecutionPermit
fn clone(&self) -> ToolExecutionPermit
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 ToolExecutionPermit
impl Debug for ToolExecutionPermit
impl Eq for ToolExecutionPermit
Source§impl PartialEq for ToolExecutionPermit
impl PartialEq for ToolExecutionPermit
Source§fn eq(&self, other: &ToolExecutionPermit) -> bool
fn eq(&self, other: &ToolExecutionPermit) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ToolExecutionPermit
Auto Trait Implementations§
impl Freeze for ToolExecutionPermit
impl RefUnwindSafe for ToolExecutionPermit
impl Send for ToolExecutionPermit
impl Sync for ToolExecutionPermit
impl Unpin for ToolExecutionPermit
impl UnsafeUnpin for ToolExecutionPermit
impl UnwindSafe for ToolExecutionPermit
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