pub enum Permissions {
OwnerOnly,
Inherit,
}Expand description
Whether output permissions are tightened.
Variants§
OwnerOnly
Owner read/write only (0600 on Unix; a no-op on Windows, ADR-0047).
The default, and the decision recorded in ADR-0019. A stripped file is the more sensitive artefact of the pair, not the less: the user is about to publish it, and a world-readable copy sitting in a shared directory in the meantime is an avoidable exposure. Source timestamps and permissions are never copied onto the output — modification time is itself metadata, and preserving it would hand back a fact the user believed they had just removed.
Inherit
Whatever the platform’s default for a new file is (the process umask on Unix).
Trait Implementations§
Source§impl Clone for Permissions
impl Clone for Permissions
Source§fn clone(&self) -> Permissions
fn clone(&self) -> Permissions
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 moreimpl Copy for Permissions
Source§impl Debug for Permissions
impl Debug for Permissions
impl Eq for Permissions
Source§impl PartialEq for Permissions
impl PartialEq for Permissions
impl StructuralPartialEq for Permissions
Auto Trait Implementations§
impl Freeze for Permissions
impl RefUnwindSafe for Permissions
impl Send for Permissions
impl Sync for Permissions
impl Unpin for Permissions
impl UnsafeUnpin for Permissions
impl UnwindSafe for Permissions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.