pub struct PolicyInput {
pub session_mode: PolicySessionMode,
pub manifest: ToolManifest,
pub legacy_approval: ApprovalRequirement,
pub supports_parallel_hint: bool,
pub trust_mode: bool,
}Expand description
Inputs for a single tool policy evaluation.
Fields§
§session_mode: PolicySessionMode§manifest: ToolManifest§legacy_approval: ApprovalRequirementRegistry hint until footprints fully replace capability metadata.
supports_parallel_hint: boolBuilt-in registry hint for parallel eligibility.
trust_mode: boolSession trust / YOLO bypasses approval prompts.
Trait Implementations§
Source§impl Clone for PolicyInput
impl Clone for PolicyInput
Source§fn clone(&self) -> PolicyInput
fn clone(&self) -> PolicyInput
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 moreAuto Trait Implementations§
impl Freeze for PolicyInput
impl RefUnwindSafe for PolicyInput
impl Send for PolicyInput
impl Sync for PolicyInput
impl Unpin for PolicyInput
impl UnsafeUnpin for PolicyInput
impl UnwindSafe for PolicyInput
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