pub enum ProjectTop {
Protected,
Writable,
}Expand description
sandbox.project_top (ADR-090).
Variants§
Protected
Granted entry by entry: the policy’s denies at the top hold.
Writable
Granted whole: the top is writable, and .env and .git/hooks there
are open to the agent’s commands.
Implementations§
Source§impl ProjectTop
impl ProjectTop
Sourcepub fn is_protected(&self) -> bool
pub fn is_protected(&self) -> bool
Whether this is the default, ProjectTop::Protected.
Trait Implementations§
Source§impl Clone for ProjectTop
impl Clone for ProjectTop
impl Copy for ProjectTop
Source§impl Debug for ProjectTop
impl Debug for ProjectTop
Source§impl Default for ProjectTop
impl Default for ProjectTop
Source§impl<'de> Deserialize<'de> for ProjectTop
impl<'de> Deserialize<'de> for ProjectTop
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ProjectTop
Source§impl PartialEq for ProjectTop
impl PartialEq for ProjectTop
Source§impl Serialize for ProjectTop
impl Serialize for ProjectTop
impl StructuralPartialEq for ProjectTop
Auto Trait Implementations§
impl Forget for ProjectTop
impl Freeze for ProjectTop
impl Move for ProjectTop
impl RefUnwindSafe for ProjectTop
impl Send for ProjectTop
impl Sync for ProjectTop
impl Unpin for ProjectTop
impl UnsafeUnpin for ProjectTop
impl UnwindSafe for ProjectTop
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