pub struct AllowedFeatures {
pub symlinks: bool,
pub hardlinks: bool,
pub absolute_paths: bool,
pub world_writable: bool,
}Expand description
Feature flags controlling what archive features are allowed during extraction.
All features default to false (deny-by-default security policy).
Fields§
§symlinks: boolAllow symlinks in extracted archives.
hardlinks: boolAllow hardlinks in extracted archives.
absolute_paths: boolAllow absolute paths in archive entries.
world_writable: boolAllow world-writable files (mode 0o002).
World-writable files pose security risks in multi-user environments.
Trait Implementations§
Source§impl Clone for AllowedFeatures
impl Clone for AllowedFeatures
Source§fn clone(&self) -> AllowedFeatures
fn clone(&self) -> AllowedFeatures
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 moreSource§impl Debug for AllowedFeatures
impl Debug for AllowedFeatures
Source§impl Default for AllowedFeatures
impl Default for AllowedFeatures
Source§fn default() -> AllowedFeatures
fn default() -> AllowedFeatures
Returns the “default value” for a type. Read more
Source§impl PartialEq for AllowedFeatures
impl PartialEq for AllowedFeatures
impl Copy for AllowedFeatures
impl Eq for AllowedFeatures
impl StructuralPartialEq for AllowedFeatures
Auto Trait Implementations§
impl Freeze for AllowedFeatures
impl RefUnwindSafe for AllowedFeatures
impl Send for AllowedFeatures
impl Sync for AllowedFeatures
impl Unpin for AllowedFeatures
impl UnwindSafe for AllowedFeatures
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.