pub enum FileGuard {
None,
Reads,
SensitiveReads,
Writes,
}Expand description
Which of a tool’s paths are judged against the secret and sensitive patterns. A shell is not: the owner is asked about its commands instead.
Variants§
None
Reads
The paths it reads must not hold secrets.
SensitiveReads
The paths it reads must not be sensitive (a superset of secrets, for a tool that publishes what it reads).
Writes
The paths it changes must not be sensitive.
Trait Implementations§
impl Copy for FileGuard
impl Eq for FileGuard
impl StructuralPartialEq for FileGuard
Auto Trait Implementations§
impl Forget for FileGuard
impl Freeze for FileGuard
impl Move for FileGuard
impl RefUnwindSafe for FileGuard
impl Send for FileGuard
impl Sync for FileGuard
impl Unpin for FileGuard
impl UnsafeUnpin for FileGuard
impl UnwindSafe for FileGuard
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