pub struct PermitCheckContextV1 {
pub tool_id: String,
pub risk_class: CanonicalToolSideEffectClass,
pub sandbox_root: String,
pub run_id: Option<ArtifactId>,
pub attempt_id: Option<ArtifactId>,
}Fields§
§tool_id: String§risk_class: CanonicalToolSideEffectClass§sandbox_root: String§run_id: Option<ArtifactId>§attempt_id: Option<ArtifactId>Implementations§
Source§impl PermitCheckContextV1
impl PermitCheckContextV1
pub fn new( tool_id: impl Into<String>, risk_class: CanonicalToolSideEffectClass, sandbox_root: impl Into<String>, ) -> Self
pub fn with_run_attempt( self, run_id: Option<ArtifactId>, attempt_id: Option<ArtifactId>, ) -> Self
Trait Implementations§
Source§impl Clone for PermitCheckContextV1
impl Clone for PermitCheckContextV1
Source§fn clone(&self) -> PermitCheckContextV1
fn clone(&self) -> PermitCheckContextV1
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 PermitCheckContextV1
impl Debug for PermitCheckContextV1
impl Eq for PermitCheckContextV1
Source§impl PartialEq for PermitCheckContextV1
impl PartialEq for PermitCheckContextV1
Source§fn eq(&self, other: &PermitCheckContextV1) -> bool
fn eq(&self, other: &PermitCheckContextV1) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PermitCheckContextV1
Auto Trait Implementations§
impl Freeze for PermitCheckContextV1
impl RefUnwindSafe for PermitCheckContextV1
impl Send for PermitCheckContextV1
impl Sync for PermitCheckContextV1
impl Unpin for PermitCheckContextV1
impl UnsafeUnpin for PermitCheckContextV1
impl UnwindSafe for PermitCheckContextV1
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