pub struct BashPermissionPolicy {
pub inner: PermissionPolicy,
pub unsafe_allow_bash_without_hook: bool,
}Expand description
Permission policy with the autonomous-mode escape hatch for tests.
Fields§
§inner: PermissionPolicy§unsafe_allow_bash_without_hook: boolImplementations§
Source§impl BashPermissionPolicy
impl BashPermissionPolicy
pub fn new(inner: PermissionPolicy) -> Self
pub fn with_unsafe_bypass(self, bypass: bool) -> Self
Trait Implementations§
Source§impl Clone for BashPermissionPolicy
impl Clone for BashPermissionPolicy
Source§fn clone(&self) -> BashPermissionPolicy
fn clone(&self) -> BashPermissionPolicy
Returns a duplicate of the value. Read more
1.0.0 · 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 BashPermissionPolicy
impl !RefUnwindSafe for BashPermissionPolicy
impl Send for BashPermissionPolicy
impl Sync for BashPermissionPolicy
impl Unpin for BashPermissionPolicy
impl UnsafeUnpin for BashPermissionPolicy
impl !UnwindSafe for BashPermissionPolicy
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